浏览代码

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