Commit 0a8b5d16 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

run-tests: Allow to skip byteorder-dependent tests.

If byteorder of MicroPython under test and host CPython differ.
parent 18c22faf
......@@ -174,6 +174,10 @@ def run_tests(pyb, tests, args):
upy_byteorder = run_micropython(pyb, args, '')
cpy_byteorder = subprocess.check_output([CPYTHON3, ''])
skip_endian = (upy_byteorder != cpy_byteorder)
# Some tests shouldn't be run under Travis CI
if os.getenv('TRAVIS') == 'true':
......@@ -230,8 +234,9 @@ def run_tests(pyb, tests, args):
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_")
is_endian = test_name.endswith("_endian")
if test_file in skip_tests or (skip_native and is_native):
if test_file in skip_tests or (skip_native and is_native) or (skip_endian and is_endian):
print("skip ", test_file)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment