diff options
Diffstat (limited to 'agl-test')
-rwxr-xr-x | agl-test | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,3 +1,19 @@ #!/bin/sh + cd /usr/AGL/agl-test/ -exec pytest "$@" + +# default stress level is low +if [[ ! $STRESS_LEVEL ]] +then + export STRESS_LEVEL="low" +fi +echo "STRESS_LEVEL: $STRESS_LEVEL" + +# default test without dangerous marker +moption="-m " +if [[ $* =~ ${moption} ]] +then + exec pytest "$@" +else + exec pytest "$@" -m "not dangerous" +fi |