avoid empty lines when checking adb serials
This commit is contained in:
parent
4fe9296947
commit
8290aed23b
1 changed files with 2 additions and 0 deletions
|
@ -475,6 +475,8 @@ class TargetAndroid(Target):
|
|||
get_stdout=True)[0].splitlines()
|
||||
serials = []
|
||||
for serial in l:
|
||||
if not serial:
|
||||
continue
|
||||
if serial.startswith('*') or serial.startswith('List '):
|
||||
continue
|
||||
serials.append(serial.split()[0])
|
||||
|
|
Loading…
Reference in a new issue