diff --git a/scripts/e2e-test.sh b/scripts/e2e-test.sh index 226dedf7f..f0c6be3b6 100755 --- a/scripts/e2e-test.sh +++ b/scripts/e2e-test.sh @@ -31,6 +31,7 @@ function cleanup { rm $MARKER [ $SINOPIA_PID ] && kill -9 $SINOPIA_PID + [ $SERVER_PID ] && kill -9 $SERVER_PID [ -f ~/.npmrc.bak ] && mv ~/.npmrc.bak ~/.npmrc } trap cleanup EXIT @@ -67,4 +68,6 @@ ls `basename $MARKER` > /dev/null flow --retries 10 +node ./node_modules/react-native/packager/packager.js --nonPersistent & +SERVER_PID=$! xctool -scheme EndToEndTest -sdk iphonesimulator test diff --git a/scripts/objc-test.sh b/scripts/objc-test.sh index f70df62af..1a2c9b539 100755 --- a/scripts/objc-test.sh +++ b/scripts/objc-test.sh @@ -20,9 +20,12 @@ function cleanup { [ -f $REACT_PACKAGER_LOG ] && cat $REACT_PACKAGER_LOG fi + [ $SERVER_PID ] && kill -9 $SERVER_PID } trap cleanup EXIT +node ./packager/packager.js -- --nonPersistent & +SERVER_PID=$! xctool \ -project Examples/UIExplorer/UIExplorer.xcodeproj \ -scheme UIExplorer -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 5,OS=8.3' \