Make devicelab count as a bot so we can see crash logs (#7687)
This commit is contained in:
parent
ed2be89569
commit
19d22c9726
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user