#!/bin/sh cd /usr/AGL/agl-test/ # 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