node-simctl
Advanced tools
Comparing version 3.3.4 to 3.4.0
@@ -43,30 +43,23 @@ 'use strict'; | ||
context$1$0.prev = 2; | ||
// print out the command, minus the environment which is too BIG | ||
log.debug('Command: xcrun ' + args.join(' ')); | ||
context$1$0.next = 6; | ||
context$1$0.next = 5; | ||
return _regeneratorRuntime.awrap(executingFunction('xcrun', args, { timeout: timeout, env: env })); | ||
case 6: | ||
case 5: | ||
return context$1$0.abrupt('return', context$1$0.sent); | ||
case 9: | ||
context$1$0.prev = 9; | ||
case 8: | ||
context$1$0.prev = 8; | ||
context$1$0.t0 = context$1$0['catch'](2); | ||
if (!context$1$0.t0.stderr) { | ||
context$1$0.next = 15; | ||
break; | ||
if (context$1$0.t0.stderr) { | ||
log.errorAndThrow('simctl error running \'' + command + '\': ' + context$1$0.t0.stderr.trim()); | ||
} else { | ||
log.errorAndThrow(context$1$0.t0); | ||
} | ||
throw new Error('simctl error running \'' + command + '\': ' + context$1$0.t0.stderr.trim()); | ||
case 15: | ||
throw context$1$0.t0; | ||
case 16: | ||
case 11: | ||
case 'end': | ||
return context$1$0.stop(); | ||
} | ||
}, null, this, [[2, 9]]); | ||
}, null, this, [[2, 8]]); | ||
} | ||
@@ -282,3 +275,3 @@ | ||
case 11: | ||
retries = timeout / 1000; | ||
retries = parseInt(timeout / 1000, 10); | ||
context$1$0.next = 14; | ||
@@ -460,3 +453,3 @@ return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(retries, 1000, function callee$1$0() { | ||
context$2$0.next = 2; | ||
return _regeneratorRuntime.awrap(simExec('erase', 2000, [udid])); | ||
return _regeneratorRuntime.awrap(simExec('erase', 4000, [udid])); | ||
@@ -470,3 +463,3 @@ case 2: | ||
retries = timeout / 200; | ||
retries = parseInt(timeout / 200, 10); | ||
context$1$0.next = 4; | ||
@@ -705,2 +698,2 @@ return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(retries, 200, loopFn)); | ||
// otherwise return all the sdk -> device mappings. | ||
//# sourceMappingUR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GF0ZTogbGluZU1hdGNoWzNdLFxuICAgICAgfSk7XG4gICAgfVxuICB9XG5cbiAgLy8gaWYgYSBgZm9yU2RrYCB3YXMgcGFzc2VkIGluLCByZXR1cm4gb25seSB0aGUgY29ycmVzcG9uZGluZyBsaXN0XG4gIGlmIChmb3JTZGspIHtcbiAgICBpZiAoIWRldmljZXNbZm9yU2RrXSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBTZGsgJyR7Zm9yU2RrfScgd2FzIG5vdCBpbiBsaXN0IG9mIHNpbWN0bCBzZGtzYCk7XG4gICAgfVxuICAgIHJldHVybiBkZXZpY2VzW2ZvclNka107XG4gIH1cblxuICAvLyBvdGhlcndpc2UgcmV0dXJuIGFsbCB0aGUgc2RrIC0+IGRldmljZSBtYXBwaW5ncy5cbiAgcmV0dXJuIGRldmljZXM7XG59XG5cbmV4cG9ydCB7IGluc3RhbGxBcHAsIHJlbW92ZUFwcCwgbGF1bmNoLCBzcGF3biwgc3Bhd25TdWJQcm9jZXNzLCBvcGVuVXJsLCBzaHV0ZG93biwgY3JlYXRlRGV2aWNlLFxuICAgICAgICAgZGVsZXRlRGV2aWNlLCBlcmFzZURldmljZSwgZ2V0RGV2aWNlcyB9O1xuIl19 |
@@ -27,3 +27,3 @@ /* global it:true, describe:true*/ | ||
this.timeout(20000); // enough time to allow the functions to themselves time out | ||
this.timeout(40000); // enough time to allow the functions to themselves time out | ||
var randName = undefined; | ||
@@ -199,3 +199,3 @@ var randDeviceUdid = null; | ||
context$2$0.next = 2; | ||
return _regeneratorRuntime.awrap((0, _libSimctlJs.eraseDevice)(randDeviceUdid)); | ||
return _regeneratorRuntime.awrap((0, _libSimctlJs.eraseDevice)(randDeviceUdid, 16000)); | ||
@@ -301,2 +301,2 @@ case 2: | ||
// give it 5 tries | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3Qvc2ltY3RsLXNwZWNzLmpzIl0sIm5hbWVzIjpb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'; | ||
try { | ||
// print out the command, minus the environment which is too BIG | ||
log.debug(`Command: xcrun ${args.join(' ')}`); | ||
return await executingFunction('xcrun', args, {timeout, env}); | ||
} catch (e) { | ||
if (e.stderr) { | ||
throw new Error(`simctl error running '${command}': ${e.stderr.trim()}`); | ||
log.errorAndThrow(`simctl error running '${command}': ${e.stderr.trim()}`); | ||
} else { | ||
throw e; | ||
log.errorAndThrow(e); | ||
} | ||
@@ -88,3 +86,3 @@ } | ||
// make sure that it gets out of the "Creating" state | ||
let retries = timeout / 1000; | ||
let retries = parseInt(timeout / 1000, 10); | ||
await retryInterval(retries, 1000, async () => { | ||
@@ -116,6 +114,6 @@ let devices = await getDevices(); | ||
let loopFn:Function = async () => { | ||
await simExec('erase', 2000, [udid]); | ||
await simExec('erase', 4000, [udid]); | ||
}; | ||
// retry erase with a sleep in between because it's flakey | ||
let retries = timeout / 200; | ||
let retries = parseInt(timeout / 200, 10); | ||
await retryInterval(retries, 200, loopFn); | ||
@@ -122,0 +120,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "3.3.4", | ||
"version": "3.4.0", | ||
"author": "https://github.com/appium", | ||
@@ -12,0 +12,0 @@ "license": "Apache-2.0", |
@@ -12,3 +12,3 @@ /* global it:true, describe:true*/ | ||
describe('simctl', function () { | ||
this.timeout(20000); // enough time to allow the functions to themselves time out | ||
this.timeout(40000); // enough time to allow the functions to themselves time out | ||
let randName; | ||
@@ -56,3 +56,3 @@ let randDeviceUdid = null; | ||
it('should erase devices', async () => { | ||
await eraseDevice(randDeviceUdid); | ||
await eraseDevice(randDeviceUdid, 16000); | ||
}); | ||
@@ -59,0 +59,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67015
1014