summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-29 00:52:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-29 00:52:51 -0400
commit55f5868380a4917028365256abcfd6d0b5f0a1e4 (patch)
tree57397e284628ad0a219d3c4948482a756ba19a3b /test
parent2b2ffb7787df634aee1681dac7be48e986d34337 (diff)
downloadfork-ledger-55f5868380a4917028365256abcfd6d0b5f0a1e4.tar.gz
fork-ledger-55f5868380a4917028365256abcfd6d0b5f0a1e4.tar.bz2
fork-ledger-55f5868380a4917028365256abcfd6d0b5f0a1e4.zip
Setting --date-format in ~/.ledgerrc works again
Diffstat (limited to 'test')
-rwxr-xr-xtest/LedgerHarness.py6
-rw-r--r--test/baseline/opt-color.test2
-rw-r--r--test/baseline/opt-date-format.test6
-rw-r--r--test/regress/727B2DF8.test2
4 files changed, 9 insertions, 7 deletions
diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py
index cd8beca8..cf65f590 100755
--- a/test/LedgerHarness.py
+++ b/test/LedgerHarness.py
@@ -48,8 +48,10 @@ class LedgerHarness:
if columns:
insert += ' --columns=80'
- command = re.sub('\$ledger', '%s%s --args-only --no-color --pager=none' % \
- (self.ledger, insert), command)
+ command = re.sub('\$ledger', '%s%s %s %s %s %s' % \
+ (self.ledger, insert, '--args-only',
+ '--no-color', '--pager=none',
+ '--date-format=%y-%b-%d'), command)
return Popen(command, shell=True, close_fds=True, env=env,
stdin=PIPE, stdout=PIPE, stderr=PIPE)
diff --git a/test/baseline/opt-color.test b/test/baseline/opt-color.test
index 169c46ae..6520c7dc 100644
--- a/test/baseline/opt-color.test
+++ b/test/baseline/opt-color.test
@@ -1,4 +1,4 @@
-bal --color
+bal --color --force-color
<<<
2007/02/02 RD VMMXX
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
diff --git a/test/baseline/opt-date-format.test b/test/baseline/opt-date-format.test
index 7a6983cf..b4e1a332 100644
--- a/test/baseline/opt-date-format.test
+++ b/test/baseline/opt-date-format.test
@@ -4,8 +4,8 @@ reg --date-format='%Y'
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
Income:Dividends:Vanguard:VMMXX $-0.35
>>>1
-2007 RD VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
- In:Di:Vanguard:VMMXX $-0.35 $-0.35
- 0.350 VMMXX
+2007 RD VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
+ In:Di:Vanguard:VMMXX $-0.35 $-0.35
+ 0.350 VMMXX
>>>2
=== 0
diff --git a/test/regress/727B2DF8.test b/test/regress/727B2DF8.test
index 599090a1..8c29e1ff 100644
--- a/test/regress/727B2DF8.test
+++ b/test/regress/727B2DF8.test
@@ -1,4 +1,4 @@
-reg --color
+reg --color --force-color
<<<
N $