summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2022-09-20 05:39:10 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-10-22 07:52:20 +0000
commit2355f0c09c52d6979f9f471b23816f3081cc946b (patch)
tree3f8bb192dcd835d7e858ccf2cef464ad7399ebb9
parent913a308df934952bcbedacb6baa8bd023a25b978 (diff)
downloadedk2-2355f0c09c52d6979f9f471b23816f3081cc946b.tar.gz
edk2-2355f0c09c52d6979f9f471b23816f3081cc946b.tar.bz2
edk2-2355f0c09c52d6979f9f471b23816f3081cc946b.zip
BaseTools: Fix check for ${PYTHON_COMMAND} in Tests/GNUmakefile
When checking if $PYTHON_COMMAND exists, curly braces should be used instead of parentheses. Also, "1" causes an error on FreeBSD: it's likely supposed to be 2>&1 like other scripts. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
-rw-r--r--BaseTools/Tests/GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Tests/GNUmakefile b/BaseTools/Tests/GNUmakefile
index 1cb77f84b1..caa4d26c9b 100644
--- a/BaseTools/Tests/GNUmakefile
+++ b/BaseTools/Tests/GNUmakefile
@@ -8,7 +8,7 @@
all: test
test:
- @if command -v $(PYTHON_COMMAND) >/dev/null 1; then $(PYTHON_COMMAND) RunTests.py; else python RunTests.py; fi
+ @if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then ${PYTHON_COMMAND} RunTests.py; else python RunTests.py; fi
clean:
find . -name '*.pyc' -exec rm '{}' ';'