better parsing of adb devices output (#3726)

* better parsing of adb devices output

* re-order lines
This commit is contained in:
Devon Carew
2016-05-04 12:32:46 -07:00
parent b04670699e
commit e365453eac
3 changed files with 36 additions and 29 deletions

View File

@@ -38,5 +38,13 @@ emulator-5612 host features:shell_2
expect(devices, hasLength(3));
expect(devices.first.name, 'localhost:36790');
});
testUsingContext('android n', () {
List<AndroidDevice> devices = getAdbDevices(mockAdbOutput: '''
ZX1G22JJWR device usb:3-3 product:shamu model:Nexus_6 device:shamu features:cmd,shell_v2
''');
expect(devices, hasLength(1));
expect(devices.first.name, 'Nexus 6');
});
});
}