# HG changeset patch # User Alexis S. L. Carvalho # Date 1175930875 10800 # Node ID b95a42114616e679c352f95cdd40f9745a52fe99 # Parent 66249be9aa2302ee251d5cc3586a752bbd1961a5 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. diff -r 66249be9aa23 -r b95a42114616 tests/run-tests.py --- 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)