[ 
https://issues.apache.org/jira/browse/CB-11135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15252930#comment-15252930
 ] 

ASF GitHub Bot commented on CB-11135:
-------------------------------------

Github user omefire commented on a diff in the pull request:

    https://github.com/apache/cordova-medic/pull/96#discussion_r60666920
  
    --- Diff: lib/util.js ---
    @@ -81,8 +92,8 @@ module.exports = (function() {
             return numDevices;
         }
     
    -    function getSimId() {
    -        var findSimCommand = "cordova run --list --emulator | grep ^iPhone 
| tail -n1";
    +    function getSimId(localCLI) {
    --- End diff --
    
    sure, we could do that too


> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to