Fix iOS e2e test (#23566)

Summary:
As part of #23561 this is an attempt at fixing iOS.

[iOS] [Fixed] - e2e test
Pull Request resolved: https://github.com/facebook/react-native/pull/23566

Differential Revision: D14162780

Pulled By: cpojer

fbshipit-source-id: b55d32e30f88370100f7fbddf9dfb208280844f4
This commit is contained in:
Eric Lewis
2019-02-20 21:47:56 -08:00
committed by Facebook Github Bot
parent c06473ab46
commit 4a01be47cd
2 changed files with 7 additions and 13 deletions

View File

@@ -47,15 +47,7 @@ let exitCode;
try {
// install CLI
cd('react-native-cli');
exec('yarn pack');
const CLI_PACKAGE = path.join(
ROOT,
'react-native-cli',
'react-native-cli-*.tgz',
);
cd('..');
const CLI_PACKAGE = 'react-native-cli';
if (!argv['skip-cli-install']) {
if (exec(`sudo yarn global add ${CLI_PACKAGE}`).code) {
echo('Could not install react-native-cli globally.');
@@ -197,7 +189,7 @@ try {
if (
tryExecNTimes(() => {
exec('sleep 10s');
let destination = 'platform=iOS Simulator,name=iPhone 5s,OS=11.4';
let destination = 'platform=iOS Simulator,name=iPhone 5s,OS=12.1';
let sdk = 'iphonesimulator';
let scheme = 'EndToEndTest';