mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
check in a more recent plugin testing framework
This commit is contained in:
3
node_modules/code-push-plugin-testing-framework/script/platform.js
generated
vendored
3
node_modules/code-push-plugin-testing-framework/script/platform.js
generated
vendored
@@ -272,7 +272,8 @@ var IOSEmulatorManager = (function () {
|
||||
if (!targetIOSEmulator) {
|
||||
// If no iOS simulator is specified, get the most recent iOS simulator to run tests on.
|
||||
testUtil_1.TestUtil.getProcessOutput("xcrun simctl list", { noLogCommand: true, noLogStdOut: true, noLogStdErr: true })
|
||||
.then(function (listOfDevices) {
|
||||
.then(function (listOfDevicesWithDevicePairs) {
|
||||
var listOfDevices = listOfDevicesWithDevicePairs.slice(listOfDevicesWithDevicePairs.indexOf("-- iOS"), listOfDevicesWithDevicePairs.indexOf("-- tvOS"));
|
||||
var phoneDevice = /iPhone (\S* )*(\(([0-9A-Z-]*)\))/g;
|
||||
var match = listOfDevices.match(phoneDevice);
|
||||
deferred.resolve(match[match.length - 1]);
|
||||
|
||||
Reference in New Issue
Block a user