summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Angelico <rosuav@gmail.com>2014-06-06 07:41:30 +1000
committerChris Angelico <rosuav@gmail.com>2014-06-06 07:51:01 +1000
commit88b11b50e5f26432917579a8b2ec0749bbf0c2fa (patch)
tree254987247c46287157e71a68a3eb2a8825dc2acb
parentd4c2bddd0c768da12d0cefd3c405b10e75fa5aa9 (diff)
downloadmicropython-88b11b50e5f26432917579a8b2ec0749bbf0c2fa.tar.gz
micropython-88b11b50e5f26432917579a8b2ec0749bbf0c2fa.zip
Figure out the test_name before using it (significant only to Travis skips)
-rwxr-xr-xtests/run-tests6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 1e6dd50538..15c2cbbf5c 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -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)