aboutsummaryrefslogtreecommitdiffstats
path: root/agl-test
diff options
context:
space:
mode:
Diffstat (limited to 'agl-test')
-rwxr-xr-xagl-test18
1 files changed, 17 insertions, 1 deletions
diff --git a/agl-test b/agl-test
index 569784f..992fc8a 100755
--- a/agl-test
+++ b/agl-test
@@ -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