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,10 +172,12 @@ function install_apps_interactive {
install_apps interactive
}
if [[ $1 == "test"* ]]; then
${PROJECT_NAME}-tests
if [ ! "$?" = "0" ]; then
exit 2
fi
fi
detect_installable_apps