tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh.

This commit is contained in:
Damien George 2014-10-06 17:35:46 +00:00
parent 9c6f7378f7
commit f53c343363
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
import uctypes
if sys.byteorder != "little":
print("SKIP")
sys.exit()
desc = {
"ptr": (uctypes.PTR | 0, uctypes.UINT8),
"ptr16": (uctypes.PTR | 0, uctypes.UINT16),

View File

@ -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