From 077d741a1fc710479959f9cd0f17cfb8c9c63601 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Fri, 22 Jan 2016 13:26:37 -0800 Subject: [PATCH] test script --- scripts/test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index aac6ea85..ec1ca84c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -3,13 +3,13 @@ set -o pipefail set -e -while pgrep -q Simulator; do +#while pgrep -q Simulator; do # Kill all the current simulator processes as they may be from a # different Xcode version - pkill Simulator 2>/dev/null || true +# pkill Simulator 2>/dev/null || true # CoreSimulatorService doesn't exit when sent SIGTERM - pkill -9 Simulator 2>/dev/null || true - done +# pkill -9 Simulator 2>/dev/null || true +# done DESTINATION="-destination id=$(xcrun simctl list devices | grep -v unavailable | grep -m 1 -o '[0-9A-F\-]\{36\}')" @@ -23,7 +23,7 @@ function start_packager() sh ./node_modules/react-native/packager/packager.sh | tee $PACKAGER_OUT & while :; do - if grep -Fx "React packager ready." $PACKAGER_OUT + if grep -Fxq "React packager ready." $PACKAGER_OUT then break else @@ -90,7 +90,7 @@ elif [ "$TARGET" = "react-tests-android" ]; then adb logcat | tee $LOGCAT_OUT & while :; do - if grep "FILE WRITTEN!!" $LOGCAT_OUT + if grep -q "FILE WRITTEN!!" $LOGCAT_OUT then break else