Connect immediately if emulator is booted up 39/278739/1
authorAditya Aswani <a.aswani@samsung.com>
Mon, 25 Jul 2022 14:07:30 +0000 (19:37 +0530)
committerAditya Aswani <a.aswani@samsung.com>
Mon, 25 Jul 2022 14:07:30 +0000 (19:37 +0530)
Change-Id: I136fc716669c76c6946598df5b2c555dee295b7b
Signed-off-by: Aditya Aswani <a.aswani@samsung.com>
tizen/src/scripts/emulator-sdb-connect.sh

index 00d7c534a5907e1ee8b9a8ba3a18825014f995a4..6a30d750d1bc53e2330216c5f9e5abf1342db537 100755 (executable)
@@ -20,8 +20,7 @@ fi
 SUBSTR="boot completed"
 
 echo "Waiting for the emulator to boot up"
-timeout 120s tail -f $EMULATOR_LOG_PATH | sed "/$SUBSTR/ q"
-
+(timeout 120s tail -F $EMULATOR_LOG_PATH &) | grep -q "$SUBSTR"
 #RETVALUE="$?"
 #echo "Trying sdb connect $1"