Sfoglia il codice sorgente

Only run tests optionally

Bob Mottram 9 anni fa
parent
commit
45da08e2e3
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5
    3
      src/freedombone-addremove

+ 5
- 3
src/freedombone-addremove Vedi 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