summaryrefslogtreecommitdiffstats
path: root/agl-test
blob: 992fc8aa2b73145448f92802b015e27f2b3c72aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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