summaryrefslogtreecommitdiff
path: root/test/RegressTests.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2013-01-17 12:36:17 -0800
committerJohn Wiegley <johnw@newartisans.com>2013-01-17 12:36:17 -0800
commit83bd3234d32d7a82d583e4f50f8f90837aa15a93 (patch)
tree3690c573e3c02dad77874a3e76c32344f5eb0be6 /test/RegressTests.py
parent74a1f63efbb5703e417e05466aca2ae51268862e (diff)
parent3fe2ef59566ef679d9de58e5f9454b7443d9153a (diff)
downloadfork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.tar.gz
fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.tar.bz2
fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.zip
Merge pull request #123 from kljohann/bug.788
change handling of standard input
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-xtest/RegressTests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py
index 1094d0d5..01e14191 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -100,7 +100,7 @@ class RegressFile(object):
use_stdin = False
if test['command'].find("-f ") != -1:
test['command'] = '$ledger ' + test['command']
- if test['command'].find("-f - ") != -1:
+ if re.search("-f (-|/dev/stdin)(\s|$)", test['command']):
use_stdin = True
else:
test['command'] = (('$ledger -f "%s" ' %