mirror of
https://github.com/flutter/flutter
synced 2024-10-06 00:09:53 +00:00
Do not use colors in output if running from CI. (#122645)
Do not use colors in output if running from CI.
This commit is contained in:
parent
25a2dfb302
commit
50f7910e80
|
@ -12,7 +12,10 @@ import 'package:meta/meta.dart';
|
|||
|
||||
const Duration _quietTimeout = Duration(minutes: 10); // how long the output should be hidden between calls to printProgress before just being verbose
|
||||
|
||||
final bool hasColor = stdout.supportsAnsiEscapes;
|
||||
// If running from LUCI set to False.
|
||||
final bool isLuci = Platform.environment['LUCI_CI'] == 'True';
|
||||
final bool hasColor = stdout.supportsAnsiEscapes && !isLuci;
|
||||
|
||||
|
||||
final String bold = hasColor ? '\x1B[1m' : ''; // shard titles
|
||||
final String red = hasColor ? '\x1B[31m' : ''; // errors
|
||||
|
|
Loading…
Reference in a new issue