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
     install_apps interactive
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
 fi
180
 fi
179
 
181
 
180
 detect_installable_apps
182
 detect_installable_apps