Fixed the Travis build to avoid exiting too early
minor #10950 Fixed the Travis build to avoid exiting too early (stof)

This PR was squashed before being merged into the 2.3 branch (closes #10950).

Discussion
----------

Fixed the Travis build to avoid exiting too early

currently, failed tests on Travis are exiting the build too early, avoiding to run some tests and maybe even loosing some output. See https://github.com/travis-ci/travis-ci/issues/2346 for more details

Commits
-------

2e64fb1 Fixed the Travis build to avoid exiting too early