[ https://issues.apache.org/jira/browse/CB-11135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Omar Mefire updated CB-11135: ----------------------------- Description: Logs: (https://ci.apache.org/builders/cordova-ios/builds/2375/steps/running-tests/logs/stdio) === {noformat} MEDIC LOG Thu, 21 Apr 2016 18:00:11 GMT] cordova run --list --emulator | grep ^iPhone | tail -n1 /Users/buildbot/slaves/apache/cordova-ios/cordova-medic/lib/util.js:102 var version = split[1].trim(); ^ TypeError: Cannot read property 'trim' of undefined at Object.getSimId (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/lib/util.js:102:31) at MedicIOSPermissions.updatePermissions (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/lib/medicIOSPermissions.js:18:35) at iOSSpecificPreparation (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/medic/medic-run.js:263:20) at /Users/buildbot/slaves/apache/cordova-ios/cordova-medic/medic/medic-run.js:394:28 at Request._callback (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/medic/medic-run.js:309:13) at Request.self.callback (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:368:22) at Request.emit (events.js:110:17) at Request.<anonymous> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:1219:14) at Request.emit (events.js:129:20) at IncomingMessage.<anonymous> (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:1167:12) program finished with exit code 1 elapsedTime=2.282192 {noformat} was: cordova-ios CI returned test results and all of the contacts tests failed: https://ci.apache.org/builders/cordova-ios/builds/1605/steps/getting-test-results/logs/stdio Turns out a modal had appeared asking for permission to access contacts and was never dismissed. After I clicked okay in the modal, everything was green on the next build: https://ci.apache.org/builders/cordova-ios/builds/1606 We either need a way to grant the permissions or we should exclude these tests from the CI. > cordova-ios build failure: "TypeError: Cannot read property 'trim' of > undefined" > -------------------------------------------------------------------------------- > > Key: CB-11135 > URL: https://issues.apache.org/jira/browse/CB-11135 > Project: Apache Cordova > Issue Type: Test > Components: Medic > Environment: OSX > Reporter: Omar Mefire > Assignee: Sarangan Rajamanickam > Priority: Minor > Labels: found-by-ci, ios, triaged > > Logs: > (https://ci.apache.org/builders/cordova-ios/builds/2375/steps/running-tests/logs/stdio) > === > {noformat} > MEDIC LOG Thu, 21 Apr 2016 18:00:11 GMT] cordova run --list --emulator | > grep ^iPhone | tail -n1 > /Users/buildbot/slaves/apache/cordova-ios/cordova-medic/lib/util.js:102 > var version = split[1].trim(); > ^ > TypeError: Cannot read property 'trim' of undefined > at Object.getSimId > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/lib/util.js:102:31) > at MedicIOSPermissions.updatePermissions > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/lib/medicIOSPermissions.js:18:35) > at iOSSpecificPreparation > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/medic/medic-run.js:263:20) > at > /Users/buildbot/slaves/apache/cordova-ios/cordova-medic/medic/medic-run.js:394:28 > at Request._callback > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/medic/medic-run.js:309:13) > at Request.self.callback > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:368:22) > at Request.emit (events.js:110:17) > at Request.<anonymous> > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:1219:14) > at Request.emit (events.js:129:20) > at IncomingMessage.<anonymous> > (/Users/buildbot/slaves/apache/cordova-ios/cordova-medic/node_modules/request/request.js:1167:12) > program finished with exit code 1 > elapsedTime=2.282192 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org