hledger/tools/coverage
2010-05-23 22:46:40 +00:00

11 lines
348 B
Python

#!/usr/bin/env python
# usage: hledger$ tools/coverage HPCCOMMAND HLEDGERARGS
# A front-end for hledgercov/hpc. Resets the tix count on each invocation.
import sys, os
cov="hledgercov"
cmd, args = sys.argv[1], ' '.join(sys.argv[2:])
os.system("rm -f %s.tix" % cov)
os.system("bin/%s %s >/dev/null" % (cov,args))
os.system("hpc %s %s" % (cmd,cov))