Skip to content

Commit 48aaa27

Browse files
committed
travis: Diff output, hopefully this works.
1 parent fd1c7b9 commit 48aaa27

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@ script:
1414
- make -C unix-cpy CC=gcc-4.7
1515
- make -C bare-arm
1616
- make -C stmhal
17-
- cd tests && MICROPY_CPYTHON3=python3.3 ./run-tests
18-
- cat tests/memoryerror.py.exp
19-
- cat tests/memoryerror.py.out
20-
- cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff $testbase.exp $testbase.out; done
17+
- (cd tests && MICROPY_CPYTHON3=python3.3 ./run-tests || for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff $testbase.exp $testbase.out; done && exit 1)

tests/run-tests

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ for test_file in tests:
7070
rm_f(os.path.basename(test_file + ".exp"))
7171
rm_f(os.path.basename(test_file + ".out"))
7272
else:
73-
print('EXP|{}|'.format(output_expected))
74-
print('OUT|{}|'.format(output_mupy))
7573
with open(os.path.basename(test_file + ".exp"), "w") as f:
7674
f.write(str(output_expected, "ascii"))
7775
with open(os.path.basename(test_file + ".out"), "w") as f:

0 commit comments

Comments
 (0)