devmode-test: add board param to cros_vm call
`--board` became required since crrev.com/c/2268282.
BUG=chromium:1100204
TEST=run devinstall_test.py locally
Change-Id: Ibe705f87a34620a3e413587c363491e014654055
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crostestutils/+/2270240
Tested-by: Shao-Chuan Lee <shaochuan@chromium.org>
Auto-Submit: Shao-Chuan Lee <shaochuan@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Dhanya Ganesh <dhanyaganesh@chromium.org>
Commit-Queue: Dhanya Ganesh <dhanyaganesh@chromium.org>
diff --git a/devmode-test/devinstall_test.py b/devmode-test/devinstall_test.py
index 2859551..45f28e4 100755
--- a/devmode-test/devinstall_test.py
+++ b/devmode-test/devinstall_test.py
@@ -24,6 +24,7 @@
sys.path.append(constants.SOURCE_ROOT)
sys.path.append(constants.CROS_PLATFORM_ROOT)
+# pylint: disable=C0413
from chromite.lib import constants as chromite_constants
from chromite.lib import cros_build_lib
from chromite.lib import cros_logging as logging
@@ -115,6 +116,7 @@
self.port = remote_access.GetUnusedPort()
logging.info('Starting the vm on port %d.', self.port)
vm_cmd = ['./cros_vm', '--ssh-port=%d' % self.port,
+ '--board=%s' % self.board,
'--image-path=%s' % self.working_image_path, '--start']
cros_build_lib.run(vm_cmd, cwd=chromite_constants.CHROMITE_BIN_DIR)