diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2022-09-20 05:39:10 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-10-22 07:52:20 +0000 |
commit | 2355f0c09c52d6979f9f471b23816f3081cc946b (patch) | |
tree | 3f8bb192dcd835d7e858ccf2cef464ad7399ebb9 /BaseTools/Tests | |
parent | 913a308df934952bcbedacb6baa8bd023a25b978 (diff) | |
download | edk2-2355f0c09c52d6979f9f471b23816f3081cc946b.zip edk2-2355f0c09c52d6979f9f471b23816f3081cc946b.tar.gz edk2-2355f0c09c52d6979f9f471b23816f3081cc946b.tar.bz2 |
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>
Diffstat (limited to 'BaseTools/Tests')
-rw-r--r-- | BaseTools/Tests/GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Tests/GNUmakefile b/BaseTools/Tests/GNUmakefile index 1cb77f8..caa4d26 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 '{}' ';'
|