make the drive output prettier (#4260)
This commit is contained in:
parent
111392d7c9
commit
49affc4098
@ -57,8 +57,10 @@ class LogRecord {
|
|||||||
final String loggerName;
|
final String loggerName;
|
||||||
final String message;
|
final String message;
|
||||||
|
|
||||||
|
String get levelDescription => level.toString().split(".").last;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => '[${"$level".split(".").last}] $loggerName: $message';
|
String toString() => '[${levelDescription.padRight(5)}] $loggerName: $message';
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Package-private; users should use other public logging libraries.
|
/// Package-private; users should use other public logging libraries.
|
||||||
|
@ -321,7 +321,8 @@ void restoreTestRunner() {
|
|||||||
|
|
||||||
Future<int> runTests(List<String> testArgs) async {
|
Future<int> runTests(List<String> testArgs) async {
|
||||||
printTrace('Running driver tests.');
|
printTrace('Running driver tests.');
|
||||||
await executable.main(testArgs);
|
List<String> args = testArgs.toList()..add('-rexpanded');
|
||||||
|
await executable.main(args);
|
||||||
return io.exitCode;
|
return io.exitCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user