From: utk.tiwari Date: Fri, 7 Mar 2025 06:47:49 +0000 (+0530) Subject: [TCT][Scripts][Non-ACR] Fixed launch failed issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a01bf382952d7a032ed82759d0b2a74d244833ee;p=test%2Ftct%2Fnative%2Fapi.git [TCT][Scripts][Non-ACR] Fixed launch failed issue Change-Id: I753f4ebd92e78e08e0a7134450d9c97403969abb Signed-off-by: utk.tiwari --- diff --git a/scripts_tpk/external_wrapper.sh b/scripts_tpk/external_wrapper.sh index 06271c1e3..e4dc4b19b 100755 --- a/scripts_tpk/external_wrapper.sh +++ b/scripts_tpk/external_wrapper.sh @@ -92,7 +92,10 @@ function Execute { 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