mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
Figure out the test_name before using it (significant only to Travis skips)
This commit is contained in:
@@ -33,6 +33,9 @@ def run_tests(pyb, tests):
|
||||
skip_travis_tests = set(['basics/memoryerror.py'])
|
||||
|
||||
for test_file in tests:
|
||||
test_basename = os.path.basename(test_file)
|
||||
test_name = os.path.splitext(test_basename)[0]
|
||||
|
||||
if running_under_travis and test_file in skip_travis_tests:
|
||||
print("skip ", test_file)
|
||||
skipped_tests.append(test_name)
|
||||
@@ -68,9 +71,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)
|
||||
|
||||
Reference in New Issue
Block a user