From 510ff6a6895acb72f16593fdf1de77872e72844d Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Fri, 19 Sep 2014 14:50:34 -0700 Subject: [PATCH] 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. --- .travis.yml | 2 +- tests/interactive.fish | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a60bd0fd8..da0e221a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: - ./configure - make - sudo make install - - make test + - make test SHOW_INTERACTIVE_LOG=1 notifications: irc: channels: diff --git a/tests/interactive.fish b/tests/interactive.fish index 369b8546d..b550dc9e0 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