diff options
author | Charles Duffy <chaduffy@cisco.com> | 2016-01-20 05:14:10 +0000 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-02-24 15:29:58 +0800 |
commit | 95b952db0be8052ad9bcfb77db1e96ea93753882 (patch) | |
tree | e78a6ebad0d2368b2e345132d938ad90440e1793 /BaseTools | |
parent | c56829fa73f6293daf8b097a8c8c55679e564368 (diff) | |
download | edk2-platforms-95b952db0be8052ad9bcfb77db1e96ea93753882.tar.xz |
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
(cherry picked from commit 87157f76f05469dc5c349fe53c4402e408136f2e)
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Tests/GNUmakefile | 2 |
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 '{}' ';'
|