X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Flaunch_tests.sh;h=497209341bde920a81119740c4f095cbc399facc;hb=c2401400ef8237a2208fb5a4ef219172b880ad96;hp=a2f3f1997ddd50e7c02b198161c05aa9f687ea12;hpb=fe521e625d056c03d8e56ae14f45792c10c303b1;p=transportpce.git diff --git a/tests/launch_tests.sh b/tests/launch_tests.sh index a2f3f1997..497209341 100755 --- a/tests/launch_tests.sh +++ b/tests/launch_tests.sh @@ -31,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