From 678f85131238622e576705117e299d81cff755c9 Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Sat, 13 Oct 2018 23:47:02 +0800 Subject: [PATCH] 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 Cc: Leif Lindholm Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao Reviewed-by: Ard Biesheuvel Tested-by: Ard Biesheuvel --- BaseTools/Tests/GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '{}' ';'