Print a more meaningful message when a test's output file wasn't

found.
This commit is contained in:
Barry Warsaw 1996-12-12 22:21:10 +00:00
parent c1cb360683
commit 1c92eba2dd
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@ def do_one_test(t, outdir):
print 'Generating:', filename
fake_stdout = open(filename, 'w')
else:
fake_stdout = Compare(filename)
try:
fake_stdout = Compare(filename)
except IOError:
print 'Could not find output file for test:', t
return
try:
sys.stdout = fake_stdout
print t