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 @@ -106,6 +106,7 @@ run_check() {
106
106
run_katex_check () {
107
107
flutter test tools/content/unimplemented_katex_test.dart \
108
108
--dart-define=corpusDir=" $opt_corpus_dir " \
109
+ --dart-define=verbose=" $opt_verbose " \
109
110
|| return 1
110
111
}
111
112
Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ void main() async {
113
113
buf.writeln ('Because of $reason :' );
114
114
buf.writeln (' ${messageIds .length } messages failed.' );
115
115
buf.writeln (' Oldest message: $oldestId , Newest message: $newestId ' );
116
+ if (! _verbose) {
117
+ buf.writeln ();
118
+ continue ;
119
+ }
120
+
116
121
buf.writeln (' Message IDs (up to 100): ${messageIds .take (100 ).join (', ' )}' );
117
122
buf.writeln (' TeX source (up to 30):' );
118
123
for (final node in failedMathNodes.take (30 )) {
@@ -153,6 +158,8 @@ void main() async {
153
158
154
159
const String _corpusDirPath = String .fromEnvironment ('corpusDir' );
155
160
161
+ const bool _verbose = int .fromEnvironment ('verbose' , defaultValue: 0 ) != 0 ;
162
+
156
163
Iterable <File > _getCorpusFiles () {
157
164
final corpusDir = Directory (_corpusDirPath);
158
165
return corpusDir.existsSync () ? corpusDir.listSync ().whereType <File >() : [];
You can’t perform that action at this time.
0 commit comments