summaryrefslogtreecommitdiff
path: root/test/RegressTests.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-14 07:18:49 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-14 07:18:49 -0400
commitd11ff330744b7af8d5f9c378243f3f5c4fa715b8 (patch)
tree567a858fbbc25b88e580ead1d11c46cbe0978fd4 /test/RegressTests.py
parent6acd3094b7d9e7fb157f84eed81333c7a8d65794 (diff)
downloadfork-ledger-d11ff330744b7af8d5f9c378243f3f5c4fa715b8.tar.gz
fork-ledger-d11ff330744b7af8d5f9c378243f3f5c4fa715b8.tar.bz2
fork-ledger-d11ff330744b7af8d5f9c378243f3f5c4fa715b8.zip
Made >>>2 and === optional in regression tests
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-xtest/RegressTests.py11
1 files changed, 6 insertions, 5 deletions
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()