From: Romain Forlot Date: Sat, 20 Oct 2018 00:12:18 +0000 (+0200) Subject: Select the test set to run X-Git-Tag: 6.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=7ba30135732fc49bfadd5866c08be7080c9f3937;p=apps%2Fapp-templates.git Select the test set to run The widget launcher script has been modified to use the environment variable VERBSELECTED and VERBARGS. Then you are able to select a test set defined by the testVerb configuration section in your JSON configuration file. You can also use the special argument {'lavaOutput': true} to enable specials Lava markers on the output. Change-Id: If677cbbc8cb6cf6eb1bdf9f76b83f5e7976dd5a5 Signed-off-by: Romain Forlot --- diff --git a/test-wgt/launcher.sh.in b/test-wgt/launcher.sh.in index 7414a7b..1dac914 100644 --- a/test-wgt/launcher.sh.in +++ b/test-wgt/launcher.sh.in @@ -21,6 +21,8 @@ PORT=$1 TOKEN=$2 +[ ! "${VERBSELECTED}" ] && VERBSELECTED="*" + # Research the Api name used CFGFILE=$(find ${AFM_APP_INSTALL_DIR} -name "*json" -print | head -n1) API=$(grep '\"api\"' ${CFGFILE} | cut -d'"' -f4) @@ -32,19 +34,36 @@ mkfifo $AFBCLIENTOUT declare -a testVerb -if [[ $(jq '.testVerb|type' $CFGFILE) == "array" ]] +if [[ $(jq -r '.testVerb|type' $CFGFILE) == "array" ]] then - testVerbLength=$(jq '.testVerb | length') - for (( idx=0; idx