From d11ff330744b7af8d5f9c378243f3f5c4fa715b8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 Jun 2010 07:18:49 -0400 Subject: Made >>>2 and === optional in regression tests --- test/RegressTests.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/RegressTests.py') diff --git a/test/RegressTests.py b/test/RegressTests.py index 13a0a113..a32bdb6b 100755 --- a/test/RegressTests.py +++ b/test/RegressTests.py @@ -23,6 +23,7 @@ class RegressFile: def is_directive(self, line): return line == "<<<\n" or \ + line == ">>>\n" or \ line == ">>>1\n" or \ line == ">>>2\n" or \ line.startswith("===") @@ -42,10 +43,10 @@ class RegressFile: def read_test(self, last_test = None): test = { 'command': None, - 'input': None, - 'output': None, - 'error': None, - 'exitcode': None + 'input': "", + 'output': "", + 'error': "", + 'exitcode': 0 } if last_test: test['input'] = last_test['input'] @@ -54,7 +55,7 @@ class RegressFile: while line: if line == "<<<\n": (test['input'], line) = self.read_section() - elif line == ">>>1\n": + elif line == ">>>\n" or line == ">>>1\n": (test['output'], line) = self.read_section() elif line == ">>>2\n": (test['error'], line) = self.read_section() -- cgit v1.2.3