From cb5deaed6bde1acfb9f9160eb1917ebcd652cc2f Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 4 Mar 2014 15:25:42 +0100 Subject: [PATCH] MT#6165 allow parse only or test only on get_results.sh --- get_results.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/get_results.sh b/get_results.sh index 88c1257e..dcb54a36 100755 --- a/get_results.sh +++ b/get_results.sh @@ -13,16 +13,19 @@ function usage echo "-g generate png flow graphs if test fails" echo "-G generate png all flow graphs" echo "-h this help" - + echo "-P parse only will disable test" + echo "-T test only will disable parse" echo "BASE_DIR:${BASE_DIR}" echo "BIN_DIR:${BIN_DIR}" } -while getopts 'hgGp:' opt; do +while getopts 'hgGp:TP' opt; do case $opt in h) usage; exit 0;; G) GRAPH="-G";; g) GRAPH="-g";; + P) OPTS="-T";; + T) OPTS="-P";; p) PROFILE=$OPTARG;; esac done @@ -44,7 +47,7 @@ echo "$(date) - Clean result dir" rm -rf ${RESULT_DIR} find ${BASE_DIR}/scenarios/ -depth -maxdepth 1 -mindepth 1 -type d -exec basename {} \; | grep -v templates| sort \ - | parallel "${BIN_DIR}/check.sh ${GRAPH} -C -R -d ${DOMAIN} -p ${PROFILE}" + | parallel "${BIN_DIR}/check.sh ${GRAPH} -C -R ${OPTS} -d ${DOMAIN} -p ${PROFILE}" status=$? echo "$(date) - All done[$status]" exit $status