summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-13 00:50:54 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-13 00:51:24 +0200
commit138562ccd975dbccd189c1221349ca2fc1e0fda9 (patch)
treeda5841809ac7161e5bf61fd61ec123390dbc615c
parente181c0dc07c32408d7584ef5b078cd3e88076d3f (diff)
downloadmicropython-138562ccd975dbccd189c1221349ca2fc1e0fda9.tar.gz
micropython-138562ccd975dbccd189c1221349ca2fc1e0fda9.zip
run-tests: Skip native/viper tests based on prefix.
Otherwise, new tests are forgotten to be added to explicit lists. Issue found running on Debian/ARM.
-rwxr-xr-xtests/run-tests7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/run-tests b/tests/run-tests
index b31758316b..d8774d827b 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -51,12 +51,12 @@ def run_tests(pyb, tests, args):
skipped_tests = []
skip_tests = set()
+ skip_native = False
# Check if micropython.native is supported, and skip such tests if it's not
native = run_micropython(pyb, args, 'micropython/native_check.py')
if native == b'CRASH':
- skip_tests.update({'micropython/native_%s.py' % t for t in 'check misc'.split()})
- skip_tests.update({'micropython/viper_%s.py' % t for t in 'binop_arith binop_comp cond ptr16_store ptr8_store misc'.split()})
+ skip_native = True
# Some tests shouldn't be run under Travis CI
if os.getenv('TRAVIS') == 'true':
@@ -91,8 +91,9 @@ def run_tests(pyb, tests, args):
for test_file in tests:
test_basename = os.path.basename(test_file)
test_name = os.path.splitext(test_basename)[0]
+ is_native = test_name.startswith("native_") or test_name.startswith("viper_")
- if test_file in skip_tests:
+ if test_file in skip_tests or (skip_native and is_native):
print("skip ", test_file)
skipped_tests.append(test_name)
continue