summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-29 21:36:57 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-29 21:36:57 -0800
commita4033df6f4cc1d7b268aa4cc9a4f75ee84e7b4ea (patch)
tree8cc99d70df89a9502d496ae64524ea54332d1204 /test
parent3643c9c36b35bdd2b5da963ac3d05ef0e2cbf7e7 (diff)
spec_tests.py: if dump_args, don't try to load dynamic library.
Diffstat (limited to 'test')
-rwxr-xr-xtest/spec_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index 394d1a2..22af15f 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -32,7 +32,8 @@ if __name__ == "__main__":
default=False, help='filter stdin through normalizer for testing')
args = parser.parse_args(sys.argv[1:])
-cmark = CMark(prog=args.program, library_dir=args.library_dir)
+if not args.dump_tests:
+ cmark = CMark(prog=args.program, library_dir=args.library_dir)
# Normalization code, adapted from
# https://github.com/karlcow/markdown-testsuite/