Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I9076278096e15829b4bca52f6b5ef9e9a3b39e9e
echo "DEBUG: analyse wgt file"
unzip $wgtfile
echo "DEBUG: analyse wgt file"
unzip $wgtfile
+ if [ -f config.xml ];then
grep hidden config.xml
if [ $? -eq 0 ];then
echo "DEBUG: hidden package"
grep hidden config.xml
if [ $? -eq 0 ];then
echo "DEBUG: hidden package"
# here we need to differ between SERVICE_PLATFORM, SERVICE_USER and APPLICATION_USER
if test x"1" = x"$SERVICE_PLATFORM" ; then
# here we need to differ between SERVICE_PLATFORM, SERVICE_USER and APPLICATION_USER
if test x"1" = x"$SERVICE_PLATFORM" ; then
+ PRE_CMD="su -c ' "
+ POST_CMD=" '"
fi
if test x"1" = x"$SERVICE_USER" ; then
fi
if test x"1" = x"$SERVICE_USER" ; then
- PRE_CMD="su $AGLDRIVER -c"
+ PRE_CMD="su $AGLDRIVER -c '"
+ POST_CMD=" '"
fi
if test x"1" = x"$APPLICATION_USER" ; then
fi
if test x"1" = x"$APPLICATION_USER" ; then
- PRE_CMD="su $AGLDRIVER -c"
+ PRE_CMD="su $AGLDRIVER -c '"
+ POST_CMD=" '"
fi
# construct the command to call
CMD=( "$PRE_CMD" )
fi
# construct the command to call
CMD=( "$PRE_CMD" )
CMD+=( "afm-util start $NAMEID" )
CMD+=( "afm-util start $NAMEID" )
echo "DEBUG: start $NAMEID"
echo "DEBUG: start $NAMEID"
- exec "${CMD[@]}" > "rid"
if [ $? -ne 0 ];then
echo "ERROR: afm-util start"
lava-test-case afm-util-start-$WGTNAME --result fail
if [ $? -ne 0 ];then
echo "ERROR: afm-util start"
lava-test-case afm-util-start-$WGTNAME --result fail