Add option to stream logs to file for flutter logs and way to use it in devicelab runs (#84008)

This commit is contained in:
Dan Field
2021-06-07 10:33:00 -07:00
committed by GitHub
parent de9d484287
commit 5cc7b6c3ea
143 changed files with 306 additions and 175 deletions

View File

@@ -6,7 +6,7 @@
import 'package:collection/collection.dart' show ListEquality, MapEquality;
import 'package:flutter_devicelab/framework/adb.dart';
import 'package:flutter_devicelab/framework/devices.dart';
import 'package:meta/meta.dart';
import 'common.dart';

View File

@@ -39,15 +39,7 @@ void main() {
final FakePlatform fakePlatform = FakePlatform(environment: <String, String>{}, operatingSystem: 'windows');
final HostAgent agent = HostAgent(platform: fakePlatform, fileSystem: fs);
expect(agent.dumpDirectory.existsSync(), isTrue);
});
test('is the same between host agent instances', () async {
final FakePlatform fakePlatform = FakePlatform(environment: <String, String>{}, operatingSystem: 'windows');
final HostAgent agent1 = HostAgent(platform: fakePlatform, fileSystem: fs);
final HostAgent agent2 = HostAgent(platform: fakePlatform, fileSystem: fs);
expect(agent1.dumpDirectory.path, agent2.dumpDirectory.path);
expect(agent.dumpDirectory, null);
});
});
}