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