Don't use NotificationListener (NbiNotifications)
[transportpce.git] / tests / launch_tests.sh
index c62307bd97665647133965a4b6fcda18610ec1e6..497209341bde920a81119740c4f095cbc399facc 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+if [ -n "$USE_ODL_ALT_KARAF_ENV" ]; then
+    echo "using environment variables from $USE_ODL_ALT_KARAF_ENV"
+    . $USE_ODL_ALT_KARAF_ENV
+fi
+
 for arg in $@; do
     if [ -z "$test_suite" ]; then
         test_suite=$1
@@ -26,7 +31,19 @@ else
     done
 fi
 if [ -z "$LAUNCHER" ]; then
-    LAUNCHER="nosetests --with-xunit";
+    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