summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-04 17:28:34 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-04 17:28:34 +0300
commita7752a4540958a3233f4754fb06986dcacb865b0 (patch)
treeaae77ec779200bd56c65ed2d1667cd11a743a916
parente8208a7f0246e584b09455e82cc7f27cf7f0fe95 (diff)
downloadmicropython-a7752a4540958a3233f4754fb06986dcacb865b0.tar.gz
micropython-a7752a4540958a3233f4754fb06986dcacb865b0.zip
run-tests: Elaborate python3 command override capabilities.
-rwxr-xr-xtests/run-tests5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 5be8192971..22ddbe58ed 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -5,8 +5,11 @@ import subprocess
import sys
from glob import glob
+# Tests require at least CPython 3.3. If your default python3 executable
+# is of lower version, you can point MICROPY_CPYTHON3 environment var
+# to the correct executable.
if os.name == 'nt':
- CPYTHON3 = 'python3.exe'
+ CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3.exe')
MP_PY = '../windows/micropython.exe'
else:
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')