diff options
author | Liming Gao <liming.gao@intel.com> | 2018-12-28 16:25:04 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-01 11:09:23 +0800 |
commit | 7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa (patch) | |
tree | 360f42806db00160fa79e6d2647722b3782c5206 /BaseTools/Tests | |
parent | d8238aaf862a55eec77040844c71a02c71294e86 (diff) | |
download | edk2-7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa.tar.gz edk2-7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa.tar.bz2 edk2-7aef7b7cbf16f79fb17c5ace98b1bc7f15bb90fa.zip |
BaseTools: Update PYTHON env to PYTHON_COMMAND
Update PYTHON env to PYTHON_COMMAND.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Tests')
-rw-r--r-- | BaseTools/Tests/GNUmakefile | 2 | ||||
-rw-r--r-- | BaseTools/Tests/PythonTest.py | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/BaseTools/Tests/GNUmakefile b/BaseTools/Tests/GNUmakefile index d6f4e1908b..3eb52b3f83 100644 --- a/BaseTools/Tests/GNUmakefile +++ b/BaseTools/Tests/GNUmakefile @@ -14,7 +14,7 @@ all: test
test:
- @if command -v $(PYTHON) >/dev/null 1; then $(PYTHON) RunTests.py; else python RunTests.py; fi
+ @if command -v $(PYTHON_COMMAND) >/dev/null 1; then $(PYTHON_COMMAND) RunTests.py; else python RunTests.py; fi
clean:
find . -name '*.pyc' -exec rm '{}' ';'
diff --git a/BaseTools/Tests/PythonTest.py b/BaseTools/Tests/PythonTest.py new file mode 100644 index 0000000000..cd49dc5b5d --- /dev/null +++ b/BaseTools/Tests/PythonTest.py @@ -0,0 +1,15 @@ +## @file
+# Test whether PYTHON_COMMAND is available
+#
+# Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
+# This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution. The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+
+if __name__ == '__main__':
+ print('TRUE')
|