Unverified Commit e4014a55 authored by Yegor's avatar Yegor Committed by GitHub

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

parent ed73f94e
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment