diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-25 01:41:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-25 01:41:23 -0400 |
commit | 838338e3164cf17d2a6de5fea7dffbf1241a476b (patch) | |
tree | eb86dddcfc8553c0c4a42111f40bc591ba49c5af /tools/confirm.py | |
parent | ac8e27a4b85376d94704b6bf8b85e8e82f457f42 (diff) | |
download | fork-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-x | tools/confirm.py | 6 |
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 |