Parcourir la source

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

Carlos Garcia il y a 6 ans
Parent
commit
5d87f9b4c3
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      build.sh

+ 4 - 4
build.sh

@@ -62,9 +62,9 @@ testpath="discover -s Test/"
 if [ -e "Test/test_\$1.py" ]; then
     testpath="Test/test_\$1.py"
 fi
-PYTHONWARNINGS="ignore" coverage run --source=. -m unittest \$testpath >/dev/null
-coverage html
-coverage report -m
+PYTHONWARNINGS="ignore" coverage3 run --source=. -m unittest \$testpath >/dev/null
+coverage3 html
+coverage3 report -m
 EOF
 
 # Create the test script
@@ -79,7 +79,7 @@ SCRIPT_PATH=\${ID2T_DIR%/*}
 cd \$SCRIPT_PATH/code
 # Execute tests
 set -e
-python -m unittest Test/efficiency_testing.py
+python3 -m unittest Test/efficiency_testing.py
 EOF
 
 chmod +x ./code/CLI.py