diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-14 17:14:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-14 17:14:56 -0400 |
commit | f3bedb88b24ae8b2047ad86e57b161265c2812f5 (patch) | |
tree | e6e5954f40a09e7fd002f242523c1eb0f318b397 /test/RegressTests.py | |
parent | 0c699e4d57fe91fa04c4c2f23f9c2f2a6a5da582 (diff) | |
parent | 63b4bdaecff5a865bff22e8e7914bef6ab46fa6b (diff) | |
download | fork-ledger-f3bedb88b24ae8b2047ad86e57b161265c2812f5.tar.gz fork-ledger-f3bedb88b24ae8b2047ad86e57b161265c2812f5.tar.bz2 fork-ledger-f3bedb88b24ae8b2047ad86e57b161265c2812f5.zip |
Merge branch 'next'
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-x | test/RegressTests.py | 11 |
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() |