소스 검색

Merge branch 'single_test_no_coverage_SKIP_CI' of stefan.schmidt/ID2T-toolkit into master

Carlos Garcia 6 년 전
부모
커밋
aa8c9e4178
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      build.sh

+ 6 - 2
build.sh

@@ -68,13 +68,17 @@ cd \$SCRIPT_PATH
 cd code
 # Execute tests
 set -e
+PRINT_COV=true
 testpath="discover -s Test/"
 if [ -e "Test/test_\$1.py" ]; then
     testpath="Test/test_\$1.py"
+    PRINT_COV=false
 fi
 PYTHONWARNINGS="ignore" coverage3 run --source=. -m unittest \$testpath >/dev/null
-coverage3 html
-coverage3 report -m
+if \$PRINT_COV ; then
+    coverage3 html
+    coverage3 report -m
+fi
 EOF
 
 # Create the test script