Web benchmarks: make headless mode opt-out (#50166)

This commit is contained in:
Yegor
2020-02-05 13:21:33 -08:00
committed by GitHub
parent ed73f94ebf
commit e4014a55c8

View File

@@ -99,8 +99,13 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async {
'--disable-translate',
];
final bool isUncalibratedSmokeTest =
io.Platform.environment['UNCALIBRATED_SMOKE_TEST'] == 'true';
// TODO(yjbanov): temporarily disables headful Chrome until we get
// devicelab hardware that is able to run it. Our current
// GCE VMs can only run in headless mode.
// See: https://github.com/flutter/flutter/issues/50164
final bool isUncalibratedSmokeTest = io.Platform.environment['CALIBRATED'] != 'true';
// final bool isUncalibratedSmokeTest =
// io.Platform.environment['UNCALIBRATED_SMOKE_TEST'] == 'true';
if (isUncalibratedSmokeTest) {
print('Running in headless mode because running on uncalibrated hardware.');
args.add('--headless');