summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/global.cc3
-rwxr-xr-xtest/LedgerHarness.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/global.cc b/src/global.cc
index 2ce73bae..19cab1c8 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -418,6 +418,9 @@ void global_scope_t::normalize_report_options(const string& verb)
report_t& rep(report());
+ if (! rep.HANDLED(no_color))
+ rep.HANDLER(color).on_only(string("?normalize"));
+
// jww (2009-02-09): These globals are a hack, but hard to avoid.
item_t::use_effective_date = (rep.HANDLED(effective) &&
! rep.HANDLED(actual_dates));
diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py
index cc3b04cd..5af47463 100755
--- a/test/LedgerHarness.py
+++ b/test/LedgerHarness.py
@@ -48,9 +48,8 @@ class LedgerHarness:
if columns:
insert += ' --columns=80'
- command = re.sub('\$ledger',
- '%s%s --args-only' % (self.ledger, insert),
- command)
+ command = re.sub('\$ledger', '%s%s --args-only --no-color' % \
+ (self.ledger, insert), command)
return Popen(command, shell=True, close_fds=True, env=env,
stdin=PIPE, stdout=PIPE, stderr=PIPE)