Merge "Right exit code when running only selected tests"

This commit is contained in:
Jenkins 2015-09-28 10:42:32 +00:00 committed by Gerrit Code Review
commit 3349e21db0
1 changed files with 5 additions and 4 deletions

View File

@ -615,14 +615,15 @@ EOL
#
# $1 -- path to the test file
function guess_test_run {
if [[ $1 == *functional* && $1 == *.js ]]; then
run_ui_func_tests $1 || echo "ERROR: $1"
run_ui_func_tests $1
elif [[ $1 == *fuel_upgrade_system* ]]; then
run_upgrade_system_tests $1 || echo "ERROR: $1"
run_upgrade_system_tests $1
elif [[ $1 == *shotgun* ]]; then
run_shotgun_tests $1 || echo "ERROR: $1"
run_shotgun_tests $1
else
run_nailgun_tests $1 || echo "ERROR: $1"
run_nailgun_tests $1
fi
}