cmark

My personal build of CMark ✏️

Commit
54a96ac0ad071ba90a1eff05fad5376f4ba2463e
Parent
60bd289c18e06e199260ee374ef29e3017bc4a90
Author
John MacFarlane <jgm@berkeley.edu>
Date

spec_tests.py: exit code is sum of failures and errors.

Diffstat

1 file changed, 1 insertion, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified test/spec_tests.py 5 1 4
diff --git a/test/spec_tests.py b/test/spec_tests.py
@@ -140,7 +140,4 @@ if __name__ == "__main__":
         for test in tests:
             do_test(test, args.normalize, result_counts)
         out("{pass} passed, {fail} failed, {error} errored, {skip} skipped\n".format(**result_counts))
-        if result_counts['fail'] == 0 and result_counts['error'] == 0:
-            exit(0)
-        else:
-            exit(1)
+        exit(result_counts['fail'] + result_counts['error'])