Added a test harness error diagnostic

This commit is contained in:
John Wiegley 2012-03-30 04:49:45 -05:00
parent 5c57eff64a
commit 1809e63fb0
2 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,8 @@ harness = LedgerHarness(sys.argv)
tests = sys.argv[3]
if not os.path.isdir(tests) and not os.path.isfile(tests):
sys.stderr.write("'%s' is not a directory or file (cwd %s)" %
(tests, os.getcwd()))
sys.exit(1)
commands = [

View file

@ -31,6 +31,8 @@ harness = LedgerHarness(args)
tests = args[3]
if not os.path.isdir(tests) and not os.path.isfile(tests):
sys.stderr.write("'%s' is not a directory or file (cwd %s)" %
(tests, os.getcwd()))
sys.exit(1)
class RegressFile(object):