Travis fix: trigger failed tests correctly

We noticed that, after some recent changes, the current regression test scripts don't correctly trigger failed tests: tests that fail are incorrectly reported as if they are ok. This means that we could potentially have merged bad patches, but fortunately all the tests seem to work still.