Merge "Add functional tests for regenerator type"
[transportpce.git] / tests / launch_tests.sh
index 54d1cd1033eb34aca16125e960b430bfd71d2718..497209341bde920a81119740c4f095cbc399facc 100755 (executable)
@@ -31,7 +31,19 @@ else
     done
 fi
 if [ -z "$LAUNCHER" ]; then
-    LAUNCHER="python3 -m pytest -q";
+    if [ `which pytest-3` ]; then
+            LAUNCHER="pytest-3"
+    else
+        if [ `which pytest` ]; then
+            LAUNCHER="pytest"
+        else
+            LAUNCHER="python3 -m pytest"
+        fi
+    fi
+    if [ -d "allure-report" ]; then
+        LAUNCHER="$LAUNCHER --alluredir=allure-report/"
+    fi
+    LAUNCHER="$LAUNCHER -q"
 fi
 
 for script in $scriptlist; do