Browse Source

Only run tests optionally

Bob Mottram 8 years ago
parent
commit
45da08e2e3
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/freedombone-addremove

+ 5
- 3
src/freedombone-addremove View File

@@ -172,9 +172,11 @@ function install_apps_interactive {
172 172
     install_apps interactive
173 173
 }
174 174
 
175
-${PROJECT_NAME}-tests
176
-if [ ! "$?" = "0" ]; then
177
-    exit 2
175
+if [[ $1 == "test"* ]]; then
176
+    ${PROJECT_NAME}-tests
177
+    if [ ! "$?" = "0" ]; then
178
+        exit 2
179
+    fi
178 180
 fi
179 181
 
180 182
 detect_installable_apps