summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorCharles Duffy <chaduffy@cisco.com>2016-01-20 05:14:10 +0000
committeryzhu52 <yzhu52@Edk2>2016-01-20 05:14:10 +0000
commit87157f76f05469dc5c349fe53c4402e408136f2e (patch)
treec7545b25a7e66a0247a8f87ac9e781527d5463f4 /BaseTools
parent5e407648358d639ed19d228303527133e4c95c25 (diff)
downloadedk2-87157f76f05469dc5c349fe53c4402e408136f2e.tar.gz
edk2-87157f76f05469dc5c349fe53c4402e408136f2e.tar.bz2
edk2-87157f76f05469dc5c349fe53c4402e408136f2e.zip
BaseTools: Use python2 if available in Tests/GNUmakefile
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Charles Duffy <chaduffy@cisco.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19696 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Tests/GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Tests/GNUmakefile b/BaseTools/Tests/GNUmakefile
index b7cb226da9..0c11f6aae9 100644
--- a/BaseTools/Tests/GNUmakefile
+++ b/BaseTools/Tests/GNUmakefile
@@ -14,7 +14,7 @@
all: test
test:
- @python RunTests.py
+ @if command -v python2 >/dev/null 2>&1; then python2 RunTests.py; else python RunTests.py; fi
clean:
find . -name '*.pyc' -exec rm '{}' ';'