Issue #2776071 by damiankloip, neclimdul, Mixologic: run-tests.sh does not return a non zero status when tests fail with exception (cherry picked from commit 74d2937c)