Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
fix device list parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbommarito committed Jun 13, 2016
1 parent b1c5103 commit 4f963a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testUtil.ts
Expand Up @@ -110,7 +110,8 @@ export class TestUtil {
} else {
// get the most recent iOS simulator to run tests on
this.getProcessOutput("xcrun simctl list")
.then(function (listOfDevices) {
.then(function (listOfDevicesWithDevicePairs) {
var listOfDevices: string = listOfDevicesWithDevicePairs.slice(0, listOfDevicesWithDevicePairs.indexOf("== Device Pairs =="));
var phoneDevice = /iPhone (\S* )*(\(([0-9A-Z-]*)\))/g;
var match = listOfDevices.match(phoneDevice);
onReadIOSEmuName(match[match.length - 1]);
Expand Down

0 comments on commit 4f963a6

Please sign in to comment.