summaryrefslogtreecommitdiffstats
path: root/BaseTools/Tests
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-10-13 23:47:02 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-10-14 00:50:35 +0800
commit678f85131238622e576705117e299d81cff755c9 (patch)
tree7abd2637384a67fd184a02b814d050221536afc8 /BaseTools/Tests
parent913795f7a2b0937a18692ccfec892ca20cbc5aa6 (diff)
downloadedk2-678f85131238622e576705117e299d81cff755c9.tar.gz
edk2-678f85131238622e576705117e299d81cff755c9.tar.bz2
edk2-678f85131238622e576705117e299d81cff755c9.zip
BaseTools/Tests: Update GNUmakefile to use python3 variable
Cover the case user do make -C BaseTools before run the .edksetup.sh file. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
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 af334a8ac2..b920044ae1 100644
--- a/BaseTools/Tests/GNUmakefile
+++ b/BaseTools/Tests/GNUmakefile
@@ -14,7 +14,7 @@
all: test
test:
- @if command -v $(PYTHON3) >/dev/null 2>&1; then $(PYTHON3) RunTests.py; else python RunTests.py; fi
+ @if command -v python3 >/dev/null 2>&1; then python3 RunTests.py; else echo "Error: Please install a python 3 tool!"; fi
clean:
find . -name '*.pyc' -exec rm '{}' ';'