aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/interactive.fish
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-19 14:50:34 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-19 14:52:02 -0700
commit510ff6a6895acb72f16593fdf1de77872e72844d (patch)
treee2d82aca68d1ec36b206c4861c660684f31ca334 /tests/interactive.fish
parent7229d7a326618e8eda2308416932921ed2d0d320 (diff)
Dump interactive logs on travis test failure
As far as I know we can't access the build artifacts from Travis, so we can't check the interactive logs after a test failure. Add an environment variable that causes the test runner to dump the logs itself, and set that variable for Travis.
Diffstat (limited to 'tests/interactive.fish')
-rw-r--r--tests/interactive.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/interactive.fish b/tests/interactive.fish
index 369b8546..b550dc9e 100644
--- a/tests/interactive.fish
+++ b/tests/interactive.fish
@@ -42,6 +42,12 @@ for i in *.expect
# clean up tmp files
rm -f $i.tmp.{err,out,log}
else
+ if set -qgx SHOW_INTERACTIVE_LOG
+ # dump the interactive log
+ # primarily for use in travis where we can't check it manually
+ echo "Log for file $i:"
+ cat $i.tmp.log
+ end
echo "File $i failed tests"
end
end