File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ run_check() {
101
101
run_katex_check () {
102
102
flutter test tools/content/unimplemented_katex_test.dart \
103
103
--dart-define=corpusDir=" $opt_corpus_dir " \
104
+ --dart-define=verbose=" $opt_verbose " \
104
105
|| return 1
105
106
}
106
107
Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ void main() async {
112
112
buf.writeln ('Because of $reason :' );
113
113
buf.writeln (' ${messageIds .length } messages failed.' );
114
114
buf.writeln (' Oldest message: $oldestId , Newest message: $newestId ' );
115
+ if (! _verbose) {
116
+ buf.writeln ();
117
+ continue ;
118
+ }
119
+
115
120
buf.writeln (' Message IDs (upto 100): ${messageIds .take (100 ).join (', ' )}' );
116
121
buf.writeln (' TeX source (upto 30):' );
117
122
for (final node in failedMathNodes.take (30 )) {
@@ -148,6 +153,8 @@ void main() async {
148
153
149
154
const String _corpusDirPath = String .fromEnvironment ('corpusDir' );
150
155
156
+ const bool _verbose = int .fromEnvironment ('verbose' , defaultValue: 0 ) != 0 ;
157
+
151
158
Iterable <File > _getCorpusFiles () {
152
159
final corpusDir = Directory (_corpusDirPath);
153
160
return corpusDir.existsSync () ? corpusDir.listSync ().whereType <File >() : [];
You can’t perform that action at this time.
0 commit comments