diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-06 22:23:23 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-06 22:23:23 +0300 |
commit | b56a53dfd6595a51918d8631f12cc10cdfdfa4d5 (patch) | |
tree | 12435e9423a3de8ed7d236e52817b1789368ba8e | |
parent | 8c75bd26e21dc392ecf62dc71a47ac3a151d27c0 (diff) | |
parent | 047db2299cf8249a745ab3ff192498ce3657721a (diff) | |
download | micropython-b56a53dfd6595a51918d8631f12cc10cdfdfa4d5.tar.gz micropython-b56a53dfd6595a51918d8631f12cc10cdfdfa4d5.zip |
Merge pull request #667 from Rosuav/testfixes
A couple of small fixes to run-tests
-rwxr-xr-x | tests/run-tests | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/run-tests b/tests/run-tests index 1e6dd50538..866e5a14cc 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -27,13 +27,17 @@ def run_tests(pyb, tests): failed_tests = [] skipped_tests = [] - running_under_travis = os.getenv('TRAVIS') == 'true' + skip_tests = set() - # Set of tests that we shouldn't run under Travis CI - skip_travis_tests = set(['basics/memoryerror.py']) + # Some tests shouldn't be run under Travis CI + if os.getenv('TRAVIS') == 'true': + skip_tests.add('basics/memoryerror.py') for test_file in tests: - if running_under_travis and test_file in skip_travis_tests: + test_basename = os.path.basename(test_file) + test_name = os.path.splitext(test_basename)[0] + + if test_file in skip_tests: print("skip ", test_file) skipped_tests.append(test_name) continue @@ -68,9 +72,6 @@ def run_tests(pyb, tests): except pyboard.PyboardError: output_mupy = b'CRASH' - test_basename = os.path.basename(test_file) - test_name = os.path.splitext(test_basename)[0] - if output_mupy == b'SKIP\n': print("skip ", test_file) skipped_tests.append(test_name) |