Skip to content

Commit f53c343

Browse files
committed
tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh.
1 parent 9c6f737 commit f53c343

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

tests/extmod/uctypes_ptr_le.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import uctypes
22

3+
if sys.byteorder != "little":
4+
print("SKIP")
5+
sys.exit()
6+
37
desc = {
48
"ptr": (uctypes.PTR | 0, uctypes.UINT8),
59
"ptr16": (uctypes.PTR | 0, uctypes.UINT16),

tests/run-tests-exp.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ do
3232
$MP_PY $infile > $outfile
3333
numtestcases=$(expr $numtestcases + $(cat $expfile | wc -l))
3434

35-
if grep -q "SyntaxError: invalid micropython decorator" $outfile
35+
if grep -q "SKIP\|SyntaxError: invalid micropython decorator" $outfile
3636
then
37+
# we don't count tests that explicitly ask to be skipped
3738
# we don't count tests that fail due to unsupported decorator
3839
echo "skip $infile"
3940
$RM $outfile

0 commit comments

Comments
 (0)