From 0076efe5393527f505be28a6f61dbac295de8c34 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 23 Sep 2013 12:47:57 +0200 Subject: [PATCH] Add list scenarios command --- run_tests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 896f1042..74348897 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -19,9 +19,15 @@ function usage echo "BIN_DIR:${BIN_DIR}" } -while getopts 'hcp:' opt; do +function list +{ + find ${BASE_DIR}/scenarios/ -depth -maxdepth 1 -mindepth 1 -type d -exec basename {} \;| grep -v templates | sort +} + +while getopts 'hlcp:' opt; do case $opt in h) usage; exit 0;; + l) list; exit 0;; c) SKIP=1;; p) PROFILE=$OPTARG;; esac