MT#19053 use -x for set the GROUP

* show GROUP in output

Change-Id: I9d004a76181da7373ca9ca3f1c423dc7bd0033d6
changes/71/5771/2
Victor Seva 10 years ago
parent 1d9026e0f9
commit 60379ecc4c

@ -15,6 +15,7 @@ function usage
echo "-h this help"
echo "-P parse only will disable test"
echo "-T test only will disable parse"
echo "-x set GROUP scenario. Default: scenarios"
echo "BASE_DIR:${BASE_DIR}"
echo "BIN_DIR:${BIN_DIR}"
}
@ -40,7 +41,7 @@ function get_scenarios
fi
}
while getopts 'hgGp:TP' opt; do
while getopts 'hgGp:TPx:' opt; do
case $opt in
h) usage; exit 0;;
G) GRAPH="-G";;
@ -48,6 +49,7 @@ while getopts 'hgGp:TP' opt; do
P) OPTS="-T";;
T) OPTS="-P";;
p) PROFILE=$OPTARG;;
x) GROUP=$OPTARG;;
esac
done
shift $((OPTIND-1))

@ -15,8 +15,10 @@ function usage
{
echo "Usage: run_test.sh [-p PROFILE] [-c] [-t]"
echo "-p CE|PRO default is CE"
echo "-l print available SCENARIOS in GROUP"
echo "-c skips configuration of the environment"
echo "-K capture messages with tcpdump"
echo "-x set GROUP scenario. Default: scenarios"
echo "-h this help"
echo "BASE_DIR:${BASE_DIR}"
@ -57,13 +59,14 @@ function cfg_debug_off
fi
}
while getopts 'hlcp:K' opt; do
while getopts 'hlcp:Kx:' opt; do
case $opt in
h) usage; exit 0;;
l) get_scenarios; echo "${SCENARIOS}"; exit 0;;
l) SHOW_SCENARIOS=1;;
c) SKIP=1;;
p) PROFILE=$OPTARG;;
K) SKIP_CAPTURE=1;;
x) GROUP=$OPTARG;;
esac
done
shift $((OPTIND - 1))
@ -74,6 +77,12 @@ if [[ $# -ne 0 ]]; then
exit 1
fi
if [[ ${SHOW_SCENARIOS} = 1 ]] ; then
get_scenarios
echo "${SCENARIOS}"
exit 0
fi
if [ "${PROFILE}" != "CE" ] && [ "${PROFILE}" != "PRO" ]; then
echo "PROFILE ${PROFILE} unknown"
usage
@ -120,7 +129,7 @@ if [[ ${SKIP_CAPTURE} = 1 ]] ; then
fi
for t in ${SCENARIOS}; do
echo "$(date) - Run[${PROFILE}]: $t ================================================="
echo "$(date) - Run[${GROUP}/${PROFILE}]: $t ================================================="
log_temp="${LOG_DIR}/${t}"
if [ -d "${log_temp}" ]; then
echo "$(date) - Clean log dir"

Loading…
Cancel
Save