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
b56a53df
Commit
b56a53df
authored
Jun 06, 2014
by
Paul Sokolovsky
Browse files
Merge pull request #667 from Rosuav/testfixes
A couple of small fixes to run-tests
parents
8c75bd26
047db229
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/run-tests
View file @
b56a53df
...
...
@@ -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
)
...
...
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