Only run tests optionally

This commit is contained in:
Bob Mottram 2016-10-01 09:59:20 +01:00
parent e681c29f72
commit 45da08e2e3
1 changed files with 5 additions and 3 deletions

View File

@ -172,9 +172,11 @@ function install_apps_interactive {
install_apps interactive install_apps interactive
} }
${PROJECT_NAME}-tests if [[ $1 == "test"* ]]; then
if [ ! "$?" = "0" ]; then ${PROJECT_NAME}-tests
exit 2 if [ ! "$?" = "0" ]; then
exit 2
fi
fi fi
detect_installable_apps detect_installable_apps