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.
This was apparently what was interfering with the tests working on Linux. Tweak .travis.yml to install expect so the tests run on Linux.