X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Flaunch_tests.sh;h=497209341bde920a81119740c4f095cbc399facc;hb=f2d880c000de212be9868dbdaf9c8beab7a81045;hp=54d1cd1033eb34aca16125e960b430bfd71d2718;hpb=558d5680893482b03e0053d6c9330dc578d78594;p=transportpce.git diff --git a/tests/launch_tests.sh b/tests/launch_tests.sh index 54d1cd103..497209341 100755 --- a/tests/launch_tests.sh +++ b/tests/launch_tests.sh @@ -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