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.
--- a/tests/run-tests.py Sat Apr 07 04:27:55 2007 -0300
+++ b/tests/run-tests.py Sat Apr 07 04:27:55 2007 -0300
@@ -163,7 +163,7 @@
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 @@
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)