Skip to content

Commit 33c7ea1

Browse files
committed
always show cargo miri output
1 parent 6cbe280 commit 33c7ea1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ script:
5151
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
5252
cargo miri -q
5353
else
54-
cargo miri -q >stdout.real 2>stderr.real &&
55-
cat stdout.real stderr.real &&
54+
cargo miri -q >stdout.real 2>stderr.real; EXIT=$? &&
55+
# Print file names and contents (`cat` would just print contents)
56+
tail -n +0 stdout.real stderr.real &&
57+
if [[ $EXIT != 0 ]]; then exit; fi &&
5658
# Test `cargo miri` output. Not on mac because output redirecting doesn't
5759
# work. There is no error. It just stops CI.
5860
diff -u stdout.ref stdout.real &&

0 commit comments

Comments
 (0)