3 if [ -n "$USE_ODL_ALT_KARAF_ENV" ]; then
4 echo "using environment variables from $USE_ODL_ALT_KARAF_ENV"
5 . $USE_ODL_ALT_KARAF_ENV
9 if [ -z "$test_suite" ]; then
12 # Tox reinterprets "olm" and "pce" by "../olm" "../pce" because of the
13 # changedir directive and the presence of modules folders "olm" and pce"
15 if [ "$arg" = "../olm" ]; then
16 arglist=$arglist" olm"
17 elif [ "$arg" = "../pce" ]; then
18 arglist=$arglist" pce"
20 arglist=$arglist" "$arg
26 if [ -z "$arglist" ]; then
27 scriptlist="transportpce_tests/$test_suite/test[0-9][0-9]_*.py"
29 for test in $arglist; do
30 scriptlist=$scriptlist" transportpce_tests/$test_suite/test[0-9][0-9]_$test.py"
33 if [ -z "$LAUNCHER" ]; then
34 if [ `which pytest-3` ]; then
37 if [ `which pytest` ]; then
40 LAUNCHER="python3 -m pytest"
43 if [ -d "allure-report" ]; then
44 LAUNCHER="$LAUNCHER --alluredir=allure-report/"
46 LAUNCHER="$LAUNCHER -q"
49 for script in $scriptlist; do
50 echo $LAUNCHER $(ls $script)
51 $LAUNCHER $script || exit 1