Commit 48aaa27c authored by Damien George's avatar Damien George
Browse files

travis: Diff output, hopefully this works.

parent fd1c7b9d
......@@ -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/
- cat tests/
- 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)
......@@ -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"))
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:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment