summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarsten Brandt <mail@cebe.cc>2014-12-01 18:33:28 +0100
committerCarsten Brandt <mail@cebe.cc>2014-12-01 18:34:51 +0100
commit4552c508b6e56d5849e9cb3487d988f2102c0607 (patch)
tree97b7f4b41ab69246ea2f04a1b8f6022bec6cdfd5 /test
parentda0d0b693d179d1df02cc967da74fa4a5e58f121 (diff)
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 <module> 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 ```
Diffstat (limited to 'test')
-rwxr-xr-xtest/spec_tests.py2
1 files changed, 1 insertions, 1 deletions
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)