Change-Id: I753f4ebd92e78e08e0a7134450d9c97403969abb
Signed-off-by: utk.tiwari <utk.tiwari@samsung.com>
if [ $COUNTER -eq $TIMEOUT_VALUE ];
then
# terminate launched application
- su -c "app_launcher -s $1 > /dev/null" $DEVICE_EXECUTION_MODE_30
+ alive=`su -c "app_launcher -r $1" $DEVICE_EXECUTION_MODE_30 | grep "not"`
+ if [ "$alive" == "" ]; then
+ su -c "app_launcher -t $1 > /dev/null" $DEVICE_EXECUTION_MODE_30
+ fi
echo "Timeout! [ Execution exceeded $TIMEOUT_VALUE seconds ]"
if [ -e $ERRLOG_PATH ];
then