Enhancing stw and stcs to allow pausing between scenarios
Change-Id: Ie5c9e41e0d0861a7d419fa5532674bf8bb206eb4
diff --git a/tools/test/bin/stw b/tools/test/bin/stw
index 8231ee7..677d29c 100755
--- a/tools/test/bin/stw
+++ b/tools/test/bin/stw
@@ -33,8 +33,13 @@
# Iterate over all listed scenarios
for scenario in "${@:-smoke}"; do
- printf "Running scenario %s...\n" $scenario
- stc $scenario
+ if [[ $scenario =~ ^[0-9]*$ ]]; then
+ printf "Waiting %d seconds...\n" $scenario
+ sleep $scenario
+ else
+ printf "Running scenario %s...\n" $scenario
+ stc $scenario
+ fi
done
status=$?