run-tests.py: tell coverage.py to ignore errors

Otherwise there'll be some IOErrors when it tries to open python
files created during the execution of e.g. test-hook.
This commit is contained in:
Alexis S. L. Carvalho 2007-04-07 04:27:55 -03:00
parent 766df29f00
commit 77c152a933

View File

@ -163,7 +163,7 @@ def output_coverage():
omit += [x for x in sys.path if x != '']
omit = ','.join(omit)
os.chdir(PYTHONDIR)
cmd = '"%s" "%s" -r "--omit=%s"' % (
cmd = '"%s" "%s" -i -r "--omit=%s"' % (
sys.executable, os.path.join(TESTDIR, 'coverage.py'), omit)
vlog("# Running: "+cmd)
os.system(cmd)
@ -171,7 +171,7 @@ def output_coverage():
adir = os.path.join(TESTDIR, 'annotated')
if not os.path.isdir(adir):
os.mkdir(adir)
cmd = '"%s" "%s" -a "--directory=%s" "--omit=%s"' % (
cmd = '"%s" "%s" -i -a "--directory=%s" "--omit=%s"' % (
sys.executable, os.path.join(TESTDIR, 'coverage.py'),
adir, omit)
vlog("# Running: "+cmd)