Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
88b11b50
Commit
88b11b50
authored
Jun 06, 2014
by
Chris Angelico
Browse files
Figure out the test_name before using it (significant only to Travis skips)
parent
d4c2bddd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/run-tests
View file @
88b11b50
...
@@ -33,6 +33,9 @@ def run_tests(pyb, tests):
...
@@ -33,6 +33,9 @@ def run_tests(pyb, tests):
skip_travis_tests
=
set
([
'basics/memoryerror.py'
])
skip_travis_tests
=
set
([
'basics/memoryerror.py'
])
for
test_file
in
tests
:
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
:
if
running_under_travis
and
test_file
in
skip_travis_tests
:
print
(
"skip "
,
test_file
)
print
(
"skip "
,
test_file
)
skipped_tests
.
append
(
test_name
)
skipped_tests
.
append
(
test_name
)
...
@@ -68,9 +71,6 @@ def run_tests(pyb, tests):
...
@@ -68,9 +71,6 @@ def run_tests(pyb, tests):
except
pyboard
.
PyboardError
:
except
pyboard
.
PyboardError
:
output_mupy
=
b
'CRASH'
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
'
:
if
output_mupy
==
b
'SKIP
\n
'
:
print
(
"skip "
,
test_file
)
print
(
"skip "
,
test_file
)
skipped_tests
.
append
(
test_name
)
skipped_tests
.
append
(
test_name
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment