• Elias Naur's avatar
    misc/ios: inject the -u device_id option before any other arguments · 66cb80c2
    Elias Naur authored
    The idevicedebugserverproxy command takes a port number without a
    flag, like so:
    
    idevicedebugserverproxy 3222
    
    If the -u <device_id> flag is added afterwards, it is ignored and
    the command use an arbitrary device. Instead, always inject the -u
    flag before any other idevice command arguments.
    
    While here, also kill any leftover idevicedebugserverproxy instance
    previous (failed) runs might have left running.
    
    Change-Id: I0bf06ed1a20ef225abeca183f9ba8f396662d435
    Reviewed-on: https://go-review.googlesource.com/112216
    Run-TryBot: Elias Naur <elias.naur@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    66cb80c2
go_darwin_arm_exec.go 20.4 KB