factory: Change python to python2
In chroot, python default is python3 now, we need to change to python2
to run these scripts.
BUG=chromium:999876
TEST=make test
Change-Id: Ide8771f86cfc7b2339e7e6ceb0817fd0070c3749
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/factory/+/1924208
Reviewed-by: Cheng-Han Yang <chenghan@chromium.org>
Commit-Queue: Yilin Yang <kerker@chromium.org>
Tested-by: Yilin Yang <kerker@chromium.org>
Auto-Submit: Yilin Yang <kerker@chromium.org>
diff --git a/py/toolkit/installer.py b/py/toolkit/installer.py
index b39c24f..54e74a6 100755
--- a/py/toolkit/installer.py
+++ b/py/toolkit/installer.py
@@ -360,7 +360,7 @@
# We have to explicitly execute python instead of directly execute
# INSTALLER_PATH because files under INSTALLER_PATH may not be
# executable.
- 'env', 'python', INSTALLER_PATH, '--in-exe']
+ 'env', 'python2', INSTALLER_PATH, '--in-exe']
Spawn(cmd, check_call=True, log=True)
with file_utils.TempDirectory() as tmp_dir:
version_path = os.path.join(tmp_dir, VERSION_PATH)