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

Respect CHROME_EXECUTABLE in web benchmarks (#49911)

parent 306c23fd
...@@ -149,6 +149,14 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async { ...@@ -149,6 +149,14 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async {
} }
String _findSystemChromeExecutable() { String _findSystemChromeExecutable() {
// On some environments, such as the Dart HHH tester, Chrome resides in a
// non-standard location and is provided via the following environment
// variable.
final String envExecutable = io.Platform.environment['CHROME_EXECUTABLE'];
if (envExecutable != null) {
return envExecutable;
}
if (io.Platform.isLinux) { if (io.Platform.isLinux) {
final io.ProcessResult which = final io.ProcessResult which =
io.Process.runSync('which', <String>['google-chrome']); io.Process.runSync('which', <String>['google-chrome']);
......
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