]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Use python2 if available in Tests/GNUmakefile
authorCharles Duffy <chaduffy@cisco.com>
Wed, 20 Jan 2016 05:14:10 +0000 (05:14 +0000)
committeryzhu52 <yzhu52@Edk2>
Wed, 20 Jan 2016 05:14:10 +0000 (05:14 +0000)
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

BaseTools/Tests/GNUmakefile

index b7cb226da97c9d31cb2bfb078d27cbb25659e8e3..0c11f6aae94652caab22c79fbba5a492153e3565 100644 (file)
@@ -14,7 +14,7 @@
 all: test\r
 \r
 test:\r
-       @python RunTests.py\r
+       @if command -v python2 >/dev/null 2>&1; then python2 RunTests.py; else python RunTests.py; fi\r
 \r
 clean:\r
        find . -name '*.pyc' -exec rm '{}' ';'\r