Skip to content

Commit

Permalink
always show cargo miri output
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 30, 2018
1 parent 6cbe280 commit 33c7ea1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ script:
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cargo miri -q
else
cargo miri -q >stdout.real 2>stderr.real &&
cat stdout.real stderr.real &&
cargo miri -q >stdout.real 2>stderr.real; EXIT=$? &&
# Print file names and contents (`cat` would just print contents)
tail -n +0 stdout.real stderr.real &&
if [[ $EXIT != 0 ]]; then exit; fi &&
# Test `cargo miri` output. Not on mac because output redirecting doesn't
# work. There is no error. It just stops CI.
diff -u stdout.ref stdout.real &&
Expand Down

0 comments on commit 33c7ea1

Please sign in to comment.