소스 검색

Only run tests optionally

Bob Mottram 8 년 전
부모
커밋
45da08e2e3
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5
    3
      src/freedombone-addremove

+ 5
- 3
src/freedombone-addremove 파일 보기

@@ -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