forked from firka/flutter
Web benchmarks: make headless mode opt-out (#50166)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user