From b957923dc4e1328e24e0b61873ee13fcb2a7e679 Mon Sep 17 00:00:00 2001 From: Aditya Aswani Date: Mon, 25 Jul 2022 19:37:30 +0530 Subject: [PATCH] Connect immediately if emulator is booted up Change-Id: I136fc716669c76c6946598df5b2c555dee295b7b Signed-off-by: Aditya Aswani --- tizen/src/scripts/emulator-sdb-connect.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tizen/src/scripts/emulator-sdb-connect.sh b/tizen/src/scripts/emulator-sdb-connect.sh index 00d7c534a5..6a30d750d1 100755 --- a/tizen/src/scripts/emulator-sdb-connect.sh +++ b/tizen/src/scripts/emulator-sdb-connect.sh @@ -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" -- 2.34.1