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
This commit is contained in:
Charles Duffy 2016-01-20 05:14:10 +00:00 committed by yzhu52
parent 5e40764835
commit 87157f76f0
1 changed files with 1 additions and 1 deletions

View File

@ -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 '{}' ';'