avoid empty lines when checking adb serials

This commit is contained in:
Mathieu Virbel 2013-07-06 17:30:34 +02:00
parent 4fe9296947
commit 8290aed23b

View file

@ -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])