We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b1fcef commit 2c47c5eCopy full SHA for 2c47c5e
src/grammar/testparser.py
@@ -69,8 +69,12 @@
69
70
for parser in args.parser:
71
filename = os.path.basename(parser) + '.bad'
72
- print("writing {} files that did not yield the correct result with {} to {}".format(len(bad[parser]), parser, filename))
+ bad_tests = len(bad[parser])
73
+ print("writing {} files that did not yield the correct result with {} to {}\n".format(bad_tests, parser, filename))
74
with open(filename, "w") as f:
75
for p in bad[parser]:
76
+ print("bad test: {}".format(p))
77
f.write(p)
78
f.write("\n")
79
+ if bad_tests > 0:
80
+ exit(1)
0 commit comments