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

This commit is contained in:
Ian Hickson 2017-01-26 20:17:40 -08:00 committed by GitHub
parent ed2be89569
commit 19d22c9726
2 changed files with 3 additions and 0 deletions

View File

@ -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,

View File

@ -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';
}