aboutsummaryrefslogtreecommitdiff
path: root/tests/run-tests
diff options
context:
space:
mode:
authorDamien George2016-12-22 11:26:06 +1100
committerDamien George2016-12-22 11:26:06 +1100
commitcdec7ba30ed6d527c2d007b7fd37413f0c71a1fd (patch)
tree8c6e20f1c4d3b19c1587a1d4e025605c7e29bc52 /tests/run-tests
parentebb84131788ca1134d0c9cf38fcb1e5162c14bc3 (diff)
tests: Add a coverage test for printing the parse-tree.
Diffstat (limited to 'tests/run-tests')
-rwxr-xr-xtests/run-tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 1a686584c..d142c998c 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -208,6 +208,7 @@ def run_tests(pyb, tests, args):
upy_byteorder = run_micropython(pyb, args, 'feature_check/byteorder.py')
has_complex = run_micropython(pyb, args, 'feature_check/complex.py') == b'complex\n'
+ has_coverage = run_micropython(pyb, args, 'feature_check/coverage.py') == b'coverage\n'
cpy_byteorder = subprocess.check_output([CPYTHON3, 'feature_check/byteorder.py'])
skip_endian = (upy_byteorder != cpy_byteorder)
@@ -225,6 +226,9 @@ def run_tests(pyb, tests, args):
skip_tests.add('float/true_value.py')
skip_tests.add('float/types.py')
+ if not has_coverage:
+ skip_tests.add('cmdline/cmd_parsetree.py')
+
# Some tests shouldn't be run on a PC
if pyb is None:
# unix build does not have the GIL so can't run thread mutation tests