X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fscripts%2Fapplication-lifecycle.sh;h=b9b33286a946dd7fcd17168b80a4c78b38921336;hb=f134fc8a0b2ac5aa704aab8d6d2294d115d6cbba;hp=ee3d790616cd2a1b10386937d31d362d3876a605;hpb=ec4faa26c9639a8bb6a5b025dc94de57ac874d78;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/application-lifecycle.sh b/common/scripts/application-lifecycle.sh index ee3d790..b9b3328 100755 --- a/common/scripts/application-lifecycle.sh +++ b/common/scripts/application-lifecycle.sh @@ -123,7 +123,7 @@ inspect_wgt() { fi # the file naming convention is servicename.wgt # but some didnt respect it - export WGTSERVICENAME=$(grep '' config.xml | cut -d'>' -f2 | cut -d'<' -f1) + export WGTSERVICENAME=$(grep 'id=.*' config.xml | sed 's,^.*id=,id=,' | cut -d= -f2 | cut -d'"' -f2) if [ -z "$WGTSERVICENAME" ];then echo "WARN: failed to find name in config.xml, fallback to filename" export WGTSERVICENAME="$WGTNAME"