Skip to content

Commit 88b11b5

Browse files
committed
Figure out the test_name before using it (significant only to Travis skips)
1 parent d4c2bdd commit 88b11b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/run-tests

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def run_tests(pyb, tests):
3333
skip_travis_tests = set(['basics/memoryerror.py'])
3434

3535
for test_file in tests:
36+
test_basename = os.path.basename(test_file)
37+
test_name = os.path.splitext(test_basename)[0]
38+
3639
if running_under_travis and test_file in skip_travis_tests:
3740
print("skip ", test_file)
3841
skipped_tests.append(test_name)
@@ -68,9 +71,6 @@ def run_tests(pyb, tests):
6871
except pyboard.PyboardError:
6972
output_mupy = b'CRASH'
7073

71-
test_basename = os.path.basename(test_file)
72-
test_name = os.path.splitext(test_basename)[0]
73-
7474
if output_mupy == b'SKIP\n':
7575
print("skip ", test_file)
7676
skipped_tests.append(test_name)

0 commit comments

Comments
 (0)