summaryrefslogtreecommitdiff
path: root/tools/confirm.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-25 01:41:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-25 01:41:23 -0400
commit838338e3164cf17d2a6de5fea7dffbf1241a476b (patch)
treeeb86dddcfc8553c0c4a42111f40bc591ba49c5af /tools/confirm.py
parentac8e27a4b85376d94704b6bf8b85e8e82f457f42 (diff)
downloadfork-ledger-838338e3164cf17d2a6de5fea7dffbf1241a476b.tar.gz
fork-ledger-838338e3164cf17d2a6de5fea7dffbf1241a476b.tar.bz2
fork-ledger-838338e3164cf17d2a6de5fea7dffbf1241a476b.zip
More fixes to tools/regtest
Diffstat (limited to 'tools/confirm.py')
-rwxr-xr-xtools/confirm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/confirm.py b/tools/confirm.py
index e0706cbf..94e066a4 100755
--- a/tools/confirm.py
+++ b/tools/confirm.py
@@ -21,7 +21,7 @@ errors = 0
args = sys.argv[1]
for line in os.popen(re.sub('\$cmd', 'reg', args)):
- match = re.match("\\s*([-$,0-9.]+)\\s+([-$,0-9.]+)", line[55:])
+ match = re.match("\\s*([-$,0-9.]+)\\s+([-$,0-9.]+)", line[54:])
if not match:
continue
value = clean(match.group(1))
@@ -29,7 +29,7 @@ for line in os.popen(re.sub('\$cmd', 'reg', args)):
running_total += value
diff = abs(running_total - total)
- if (re.search(' -V ', args) or re.search(' -G ', args)) and diff < 0.015:
+ if re.search(' -[VGB] ', args) and diff < 0.015:
diff = 0.0
if diff > 0.001:
print "DISCREPANCY: %.3f (%.3f - %.3f) at line %d:" % \
@@ -48,7 +48,7 @@ for line in os.popen(re.sub('\$cmd', 'bal', args)):
balance_total = clean(line[:20])
diff = abs(balance_total - running_total)
-if (re.search(' -V ', args) or re.search(' -G ', args)) and diff < 0.015:
+if re.search(' -[VGB] ', args) and diff < 0.015:
diff = 0.0
if diff > 0.001:
print