summaryrefslogtreecommitdiff
path: root/BaseTools/Tests
diff options
context:
space:
mode:
authorZhijux Fan <zhijux.fan@intel.com>2018-12-19 13:28:44 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-01 11:09:22 +0800
commit9c2d68c0a29909d23266395fc48d0b81b118e341 (patch)
tree7d5600bbae95ee71ac5ff416d1a285c49732f098 /BaseTools/Tests
parent94c912950c2f588ab8c3725d7aaa3d7c07aaa995 (diff)
downloadedk2-9c2d68c0a29909d23266395fc48d0b81b118e341.zip
edk2-9c2d68c0a29909d23266395fc48d0b81b118e341.tar.gz
edk2-9c2d68c0a29909d23266395fc48d0b81b118e341.tar.bz2
BaseTools: Update windows and linux run scripts file to use Python3
Modify windows script, PosixLike script, edksetup.sh, edksetup.bat to use Python3 based on PYTHON3_ENABLE environment. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Tests')
-rw-r--r--BaseTools/Tests/GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Tests/GNUmakefile b/BaseTools/Tests/GNUmakefile
index 0c11f6a..d6f4e19 100644
--- a/BaseTools/Tests/GNUmakefile
+++ b/BaseTools/Tests/GNUmakefile
@@ -14,7 +14,7 @@
all: test
test:
- @if command -v python2 >/dev/null 2>&1; then python2 RunTests.py; else python RunTests.py; fi
+ @if command -v $(PYTHON) >/dev/null 1; then $(PYTHON) RunTests.py; else python RunTests.py; fi
clean:
find . -name '*.pyc' -exec rm '{}' ';'