travis: Diff output, hopefully this works.

pull/496/head
Damien George 2014-04-15 12:20:22 +01:00
rodzic fd1c7b9d48
commit 48aaa27c6a
2 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -14,7 +14,4 @@ script:
- make -C unix-cpy CC=gcc-4.7
- make -C bare-arm
- make -C stmhal
- cd tests && MICROPY_CPYTHON3=python3.3 ./run-tests
- cat tests/memoryerror.py.exp
- cat tests/memoryerror.py.out
- cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff $testbase.exp $testbase.out; done
- (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)

Wyświetl plik

@ -70,8 +70,6 @@ for test_file in tests:
rm_f(os.path.basename(test_file + ".exp"))
rm_f(os.path.basename(test_file + ".out"))
else:
print('EXP|{}|'.format(output_expected))
print('OUT|{}|'.format(output_mupy))
with open(os.path.basename(test_file + ".exp"), "w") as f:
f.write(str(output_expected, "ascii"))
with open(os.path.basename(test_file + ".out"), "w") as f: