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
f53c3433
Commit
f53c3433
authored
Oct 06, 2014
by
Damien George
Browse files
tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh.
parent
9c6f7378
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/extmod/uctypes_ptr_le.py
View file @
f53c3433
import
uctypes
if
sys
.
byteorder
!=
"little"
:
print
(
"SKIP"
)
sys
.
exit
()
desc
=
{
"ptr"
:
(
uctypes
.
PTR
|
0
,
uctypes
.
UINT8
),
"ptr16"
:
(
uctypes
.
PTR
|
0
,
uctypes
.
UINT16
),
...
...
tests/run-tests-exp.sh
View file @
f53c3433
...
...
@@ -32,8 +32,9 @@ do
$MP_PY
$infile
>
$outfile
numtestcases
=
$(
expr
$numtestcases
+
$(
cat
$expfile
|
wc
-l
))
if
grep
-q
"SyntaxError: invalid micropython decorator"
$outfile
if
grep
-q
"
SKIP
\|
SyntaxError: invalid micropython decorator"
$outfile
then
# we don't count tests that explicitly ask to be skipped
# we don't count tests that fail due to unsupported decorator
echo
"skip
$infile
"
$RM
$outfile
...
...
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