From 5fe5554d7012b9942a811f496ea69afcc3d293f0 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Fri, 18 Dec 2015 15:54:02 -0800 Subject: [PATCH] open chrome with --- scripts/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index a620c6f9..12b86771 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -46,8 +46,9 @@ if [ "$TARGET" = "realmjs" ]; then elif [ "$TARGET" = "react-tests" ]; then pushd tests/react-test-app - ~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome 2> /dev/null & - CHROME_PID=$! + if [ -d ~/Applications/Google\ Chrome.app ]; then + open ~/Applications/Google\ Chrome.app + fi if [ -f ../../target=node_modules/react_tests_node_modules.zip ]; then unzip -q ../../target=node_modules/react_tests_node_modules.zip @@ -57,7 +58,6 @@ elif [ "$TARGET" = "react-tests" ]; then popd xcodebuild -scheme RealmReact -configuration "$CONFIGURATION" -sdk iphonesimulator $DESTINATION build test - kill $CHROME_PID || true elif [ "$TARGET" = "react-example" ]; then pushd examples/ReactExample if [ -f ../../target=node_modules/react_example_node_modules.zip ]; then