Change pattern to args
Change-Id: I952a52bdbd790be285db1b35afd3ec6b0e043e11
diff --git a/bin/run_tempest.sh b/bin/run_tempest.sh
index de3b6ca..d51d20d 100755
--- a/bin/run_tempest.sh
+++ b/bin/run_tempest.sh
@@ -19,9 +19,9 @@
rm -rf env
tempest init env | tee -a $log
cd env
-tempest run $PATTERN | tee -a $log || true
+tempest run $ARGS | tee -a $log || true
-if [[ "$PATTERN" =~ '-r ' || "$PATTERN" =~ '--regex' || "$PATTERN" =~ '-s' ]]; then
+if [[ "$ARGS" =~ '-r ' || "$ARGS" =~ '--regex' || "$ARGS" =~ '-s' || "$ARGS" =~ '-w' || "$ARGS" =~ '' ]]; then
testr last --subunit | subunit2junitxml > $LOG_DIR/$report.xml
fi