Refactor 'flutter drive' to get the observatory port from the logs (#7695)

This remove a very brittle aspect of flutter drive, whereby it would
assume a known port instead of explicitly finding out what it was.

Fixes #7692 and hopefully fixes the devicelab tests.
This commit is contained in:
Ian Hickson
2017-01-27 01:37:28 -08:00
committed by GitHub
parent f888bbed48
commit 21434fcf1a
5 changed files with 63 additions and 60 deletions

View File

@@ -254,10 +254,8 @@ class MemoryTest {
testTarget,
'-d',
deviceId,
'--use-existing-app',
], environment: <String, String> {
'VM_SERVICE_URL': 'http://localhost:$observatoryPort'
});
'--use-existing-app=http://localhost:$observatoryPort',
]);
Map<String, dynamic> endData = await device.getMemoryStats(packageName);
data['end_total_kb'] = endData['total_kb'];