remote_access: finish RunCommand->run rename
We keep seeing new users show up with the old API, so finish the
migration to the new API.
BUG=chromium:1006587
TEST=`./run_tests` passes
Change-Id: I9c54060561276d4a79702e0e7e1343ec56136b38
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2128728
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/cli/command_vm_test.py b/cli/command_vm_test.py
index 1423a5b..a281b7e 100644
--- a/cli/command_vm_test.py
+++ b/cli/command_vm_test.py
@@ -246,8 +246,8 @@
with remote_access.ChromiumOSDeviceHandler(
remote_access.LOCALHOST, port=self.port) as device:
try:
- device.RunCommand(['python', '-c', '"import cherrypy"'])
- device.RunCommand(['qmerge', '-h'])
+ device.run(['python', '-c', '"import cherrypy"'])
+ device.run(['qmerge', '-h'])
except cros_build_lib.RunCommandError as e:
logging.error('Unable to verify packages installed on VM: %s', e)
raise CommandError()