Skip to content

Commit 97996b0

Browse files
authored
Use print logging on LUCI. (flutter#152776)
Work around flutter#152775 diagnosing flutter#152769.
1 parent 8d3d3ee commit 97996b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dev/integration_tests/android_driver_test/test_driver/main_test.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
import 'dart:io' as io;
6+
57
import 'package:flutter_driver/flutter_driver.dart';
68
import 'package:flutter_driver/src/native_driver.dart';
79
import 'package:test/test.dart';
@@ -16,6 +18,8 @@ void main() async {
1618
await testExecutable(_main);
1719
}
1820

21+
final bool _isLuciCi = io.Platform.environment['LUCI_CI'] == 'True';
22+
1923
Future<void> _main() async {
2024
// To generate golden files locally, uncomment the following line.
2125
// autoUpdateGoldenFiles = true;
@@ -24,7 +28,12 @@ Future<void> _main() async {
2428
late NativeDriver nativeDriver;
2529

2630
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+
);
2837
nativeDriver = await AndroidNativeDriver.connect();
2938
});
3039

0 commit comments

Comments
 (0)