devmode-test: change sanity test back to python
We create these again, so switch the test back to them.
BUG=chromium:998225
TEST=devinstall_test.py passes
Change-Id: I6fff7a3fd2413c64f9ce7cc75074b1b962cf3735
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crostestutils/+/1804885
Tested-by: Mike Frysinger <vapier@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
diff --git a/devmode-test/devinstall_test.py b/devmode-test/devinstall_test.py
index bb62de3..8a9637f 100755
--- a/devmode-test/devinstall_test.py
+++ b/devmode-test/devinstall_test.py
@@ -142,11 +142,10 @@
['bash', '-l', '-c',
'"/usr/bin/dev_install --yes --binhost=%s"' % self.binhost])
- logging.info('Verifying that python works on the image.')
- # crbug.com/955147: /usr/local/bin/python symlink doesn't exist.
- # Use python-wrapper instead.
- self.device.RunCommand(['sudo', '-u', 'chronos', '--', 'python-wrapper',
- '-c', '"print(\'hello world\')"'])
+ logging.info('Verifying that all python versions work on the image.')
+ for prog in ('python', 'python2', 'python3'):
+ self.device.RunCommand(['sudo', '-u', 'chronos', '--', prog,
+ '-c', '"print(\'hello world\')"'])
except (cros_build_lib.RunCommandError,
remote_access.SSHConnectionError) as e:
self.devserver.PrintLog()