From 4552c508b6e56d5849e9cb3487d988f2102c0607 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 1 Dec 2014 18:33:28 +0100 Subject: fixed python script all these variables are not defined and have to be extracted from `test`. Running the script this way resulted in error: ``` python cmm/test/spec_tests.py --spec cmm/spec.txt --program "./bin/markdown --flavor=common" Traceback (most recent call last): File "cmm/test/spec_tests.py", line 137, in if do_tests(cmark, tests, args.pattern, args.normalize): File "cmm/test/spec_tests.py", line 114, in do_tests result = do_test(test, normalize) File "cmm/test/spec_tests.py", line 47, in do_test print_test_header(headertext, example_number,start_line,end_line) NameError: global name 'headertext' is not defined ``` --- test/spec_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/spec_tests.py b/test/spec_tests.py index 4873632..7665eed 100755 --- a/test/spec_tests.py +++ b/test/spec_tests.py @@ -44,7 +44,7 @@ def do_test(test, normalize): if passed: return 'pass' else: - print_test_header(headertext, example_number,start_line,end_line) + print_test_header(test['section'], test['example'], test['start_line'], test['end_line']) sys.stdout.write(test['markdown']) expected_html_lines = '\n'.split(expected_html) actual_html_lines = actual_html.splitlines(True) -- cgit v1.2.3