test_env_action: speedup unittest, don't sleep
[yardstick.git] / run_tests.sh
index 972f6a2..2cf54c7 100755 (executable)
@@ -13,6 +13,9 @@
 
 getopts ":f" FILE_OPTION
 
+# don't write .pyc files this can cause odd unittest results
+export PYTHONDONTWRITEBYTECODE=1
+
 run_flake8() {
     echo "Running flake8 ... "
     logfile=test_results.log
@@ -33,7 +36,10 @@ run_flake8() {
     fi
 }
 
+
 run_tests() {
+    echo "Get external libs needed for unit test"
+
     echo "Running unittest ... "
     if [ $FILE_OPTION == "f" ]; then
         python -m unittest discover -v -s tests/unit > $logfile 2>&1