mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
fix: adb device parse attributes error
This commit is contained in:
@@ -41,7 +41,11 @@ var listAndroidDevicesCmd = &cobra.Command{
|
||||
if isDetail {
|
||||
fmt.Println(format(d.DeviceInfo()))
|
||||
} else {
|
||||
fmt.Println(d.Serial(), d.Usb())
|
||||
if usb, err := d.Usb(); err != nil {
|
||||
fmt.Println(d.Serial())
|
||||
} else {
|
||||
fmt.Println(d.Serial(), usb)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user