diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-20 18:36:47 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-20 18:36:47 -0400 |
commit | 8483ea16e23eefd3281774c142c7117a8a87c245 (patch) | |
tree | b5adbc4d2c118cb84e760815ea714b291cb27407 /test/regress.py | |
parent | 9d9f526816121d793de9a37d7b3e4ce7ca163953 (diff) | |
download | fork-ledger-8483ea16e23eefd3281774c142c7117a8a87c245.tar.gz fork-ledger-8483ea16e23eefd3281774c142c7117a8a87c245.tar.bz2 fork-ledger-8483ea16e23eefd3281774c142c7117a8a87c245.zip |
Added more option baseline tests
Diffstat (limited to 'test/regress.py')
-rwxr-xr-x | test/regress.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/regress.py b/test/regress.py index 7035c42b..745c9d5f 100755 --- a/test/regress.py +++ b/test/regress.py @@ -40,15 +40,22 @@ def test_regression(test_file): if command.startswith("-f - "): use_stdin = True - command = ("%s" % ledger) + " --args-only --columns=80 " + command + if re.search('--columns', command): + command = ("%s" % ledger) + " --args-only " + command + else: + command = ("%s" % ledger) + " --args-only --columns=80 " + command else: tempdata = tempfile.mkstemp() os.write(tempdata[0], string.join(data, '')) os.close(tempdata[0]) - command = (("%s -f \"%s\" " % (ledger, tempdata[1])) + - " --args-only --columns=80 " + command) + if re.search('--columns', command): + command = (("%s -f \"%s\" " % (ledger, tempdata[1])) + + " --args-only " + command) + else: + command = (("%s -f \"%s\" " % (ledger, tempdata[1])) + + " --args-only --columns=80 " + command) output = [] while line != ">>>2\n": |