Add option to stream logs to file for flutter logs and way to use it in devicelab runs (#84008)
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user