test_env_action: speedup unittest, don't sleep
[yardstick.git] / run_tests.sh
index 82c8251..2cf54c7 100755 (executable)
@@ -9,10 +9,13 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-# Run yardstick's test suite(s)
+# Run yardstick's flake8, unit, coverage, functional test
 
 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