Commit 19d22c97 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Make devicelab count as a bot so we can see crash logs (#7687)

parent ed2be895
...@@ -165,6 +165,8 @@ Future<Process> startProcess( ...@@ -165,6 +165,8 @@ Future<Process> startProcess(
}) async { }) async {
String command = '$executable ${arguments?.join(" ") ?? ""}'; String command = '$executable ${arguments?.join(" ") ?? ""}';
print('Executing: $command'); print('Executing: $command');
environment ??= <String, String>{};
environment['BOT'] = 'true';
Process process = await Process.start( Process process = await Process.start(
executable, executable,
arguments, arguments,
......
...@@ -17,6 +17,7 @@ bool get isRunningOnBot { ...@@ -17,6 +17,7 @@ bool get isRunningOnBot {
// CHROME_HEADLESS is one property set on Flutter's Chrome Infra bots. // CHROME_HEADLESS is one property set on Flutter's Chrome Infra bots.
return return
platform.environment['TRAVIS'] == 'true' || platform.environment['TRAVIS'] == 'true' ||
platform.environment['BOT'] == 'true' ||
platform.environment['CONTINUOUS_INTEGRATION'] == 'true' || platform.environment['CONTINUOUS_INTEGRATION'] == 'true' ||
platform.environment['CHROME_HEADLESS'] == '1'; platform.environment['CHROME_HEADLESS'] == '1';
} }
......
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