From 8519717f25790b155d3140103373609fad13e6f8 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 30 Jan 2013 10:32:56 +0000 Subject: [PATCH] minor fixes to --live-test --- lib/core/testing.py | 10 +++++----- xml/livetests.xml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/core/testing.py b/lib/core/testing.py index 54ba40fa8..f113648b3 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -135,7 +135,7 @@ def liveTest(): vars_[child.tagName] = randomStr(6) if var == "random" else var for case in livetests.getElementsByTagName("case"): - console_output = False + parse_from_console_output = False count += 1 name = None parse = [] @@ -162,9 +162,9 @@ def liveTest(): value = replaceVars(item.getAttribute("value"), vars_) if item.hasAttribute("console_output"): - console_output = bool(item.getAttribute("console_output")) + parse_from_console_output = bool(item.getAttribute("console_output")) - parse.append((value, console_output)) + parse.append((value, parse_from_console_output)) msg = "running live test case: %s (%d/%d)" % (name, count, length) logger.info(msg) @@ -292,8 +292,8 @@ def runCase(switches=None, parse=None): with codecs.open(conf.dumper.getOutputFile(), "rb", UNICODE_ENCODING) as f: content = f.read() - for item, console_output in parse: - parse_on = console if console_output else content + for item, parse_from_console_output in parse: + parse_on = console if parse_from_console_output else content if item.startswith("r'") and item.endswith("'"): if not re.search(item[2:-1], parse_on, re.DOTALL): diff --git a/xml/livetests.xml b/xml/livetests.xml index 5a27d28e3..db52020aa 100644 --- a/xml/livetests.xml +++ b/xml/livetests.xml @@ -3110,7 +3110,7 @@ - + @@ -3399,7 +3399,7 @@ - +