Replace various uses of deploy_chrome's '--to' with '--device'.
BUG=chromium:1115724
TEST=unittest
Change-Id: I2065eb0d03d2843d63f3aaab7bff60129ff42123
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2357404
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: George Engelbrecht <engeg@google.com>
Tested-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
diff --git a/scripts/deploy_chrome_unittest.py b/scripts/deploy_chrome_unittest.py
index d390fe3..bec2169 100644
--- a/scripts/deploy_chrome_unittest.py
+++ b/scripts/deploy_chrome_unittest.py
@@ -32,7 +32,7 @@
# pylint: disable=protected-access
-_REGULAR_TO = ('--to', 'monkey')
+_REGULAR_TO = ('--device', 'monkey')
_TARGET_BOARD = 'eve'
_GS_PATH = 'gs://foon'
@@ -76,14 +76,15 @@
def testLacros(self):
"""Test basic lacros invocation."""
argv = ['--lacros', '--nostrip', '--build-dir', '/path/to/nowhere',
- '--to', 'localhost']
+ '--device', 'monkey']
options = _ParseCommandLine(argv)
self.assertTrue(options.lacros)
self.assertEqual(options.target_dir, deploy_chrome.LACROS_DIR)
def testLacrosRequiresNostrip(self):
"""Lacros requires --nostrip"""
- argv = ['--lacros', '--build-dir', '/path/to/nowhere', '--to', 'localhost']
+ argv = ['--lacros', '--build-dir', '/path/to/nowhere', '--device',
+ 'monkey']
self.assertRaises2(SystemExit, _ParseCommandLine, argv,
check_attrs={'code': 2})
@@ -444,7 +445,7 @@
def setUp(self):
options = _ParseCommandLine([
'--lacros', '--nostrip', '--build-dir', '/path/to/nowhere',
- '--to', 'localhost'])
+ '--device', 'monkey'])
self.deploy = deploy_chrome.DeployChrome(
options, self.tempdir, os.path.join(self.tempdir, 'staging'))