File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
dev/integration_tests/android_driver_test/test_driver Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
+ import 'dart:io' as io;
6
+
5
7
import 'package:flutter_driver/flutter_driver.dart' ;
6
8
import 'package:flutter_driver/src/native_driver.dart' ;
7
9
import 'package:test/test.dart' ;
@@ -16,6 +18,8 @@ void main() async {
16
18
await testExecutable (_main);
17
19
}
18
20
21
+ final bool _isLuciCi = io.Platform .environment['LUCI_CI' ] == 'True' ;
22
+
19
23
Future <void > _main () async {
20
24
// To generate golden files locally, uncomment the following line.
21
25
// autoUpdateGoldenFiles = true;
@@ -24,7 +28,12 @@ Future<void> _main() async {
24
28
late NativeDriver nativeDriver;
25
29
26
30
setUpAll (() async {
27
- flutterDriver = await FlutterDriver .connect ();
31
+ flutterDriver = await FlutterDriver .connect (
32
+ // TODO(matanlurey): Workaround log uploading in LUCI not being enabled.
33
+ // Default to true on CI because log uploading doesn't work.
34
+ // See <https://github.com/flutter/flutter/issues/152775>.
35
+ printCommunication: _isLuciCi,
36
+ );
28
37
nativeDriver = await AndroidNativeDriver .connect ();
29
38
});
30
39
You can’t perform that action at this time.
0 commit comments