summaryrefslogtreecommitdiff
path: root/test/RegressTests.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2013-04-29 16:36:29 -0500
committerJohn Wiegley <johnw@newartisans.com>2013-04-29 16:36:29 -0500
commit59550b7f66c31592160749c5177074f63d19fa9d (patch)
tree0b28be9ab403e67d042f74ae9d1d76d885486b18 /test/RegressTests.py
parent385cbd25b9905b16a4c7723bb4e5a5813e84aab0 (diff)
parent6bef247759acbdc026624e78d0fd78297bc79501 (diff)
downloadfork-ledger-59550b7f66c31592160749c5177074f63d19fa9d.tar.gz
fork-ledger-59550b7f66c31592160749c5177074f63d19fa9d.tar.bz2
fork-ledger-59550b7f66c31592160749c5177074f63d19fa9d.zip
Merge branch 'next'
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-xtest/RegressTests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py
index 7d67eb21..01e14191 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -98,8 +98,10 @@ class RegressFile(object):
def run_test(self, test):
use_stdin = False
- if test['command'].find("-f - ") != -1:
- use_stdin = True
+ if test['command'].find("-f ") != -1:
+ test['command'] = '$ledger ' + test['command']
+ if re.search("-f (-|/dev/stdin)(\s|$)", test['command']):
+ use_stdin = True
else:
test['command'] = (('$ledger -f "%s" ' %
os.path.abspath(self.filename)) +