vboot2: apply CL 205988 to the autotest client
CL 205988 introduced bug 30387, which was fixed by CL 207233. Since autotest
server runs on ToT and the client runs on R37, this change applies the client
change in CL 205988 and CL 207233.
BUG=chrome-os-partner:30387
TEST=None. A quick fix for a broken branch.
BRANCH=release-R37-5978.B
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I52e80d4e76b4392af88902f1bc960fd662585863
Reviewed-on: https://chromium-review.googlesource.com/211532
Reviewed-by: Yusuf Mohsinally <mohsinally@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
diff --git a/client/cros/faft/rpc_functions.py b/client/cros/faft/rpc_functions.py
index 1146f84..bef256e 100755
--- a/client/cros/faft/rpc_functions.py
+++ b/client/cros/faft/rpc_functions.py
@@ -255,6 +255,17 @@
"""Set 'Try Frimware B' flag in crossystem."""
self._chromeos_interface.cs.fwb_tries = 1
+ def _system_set_fw_try_next(self, next):
+ """Set fw_try_next to A or B"""
+ self._chromeos_interface.cs.fw_try_next = next
+
+ def _system_get_fw_vboot2(self):
+ """Get fw_vboot2"""
+ try:
+ return self._chromeos_interface.cs.fw_vboot2 == '1'
+ except chromeos_interface.ChromeOSInterfaceError:
+ return False
+
def _system_request_recovery_boot(self):
"""Request running in recovery mode on the restart."""
self._chromeos_interface.cs.request_recovery()