Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/run-tests.py @ 4318:b95a42114616
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.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 07 Apr 2007 04:27:55 -0300 |
parents | 037824e6d362 |
children | 8ece1ba156c7 |
comparison
equal
deleted
inserted
replaced
4317:66249be9aa23 | 4318:b95a42114616 |
---|---|
161 if not options.cover_stdlib: | 161 if not options.cover_stdlib: |
162 # Exclude as system paths (ignoring empty strings seen on win) | 162 # Exclude as system paths (ignoring empty strings seen on win) |
163 omit += [x for x in sys.path if x != ''] | 163 omit += [x for x in sys.path if x != ''] |
164 omit = ','.join(omit) | 164 omit = ','.join(omit) |
165 os.chdir(PYTHONDIR) | 165 os.chdir(PYTHONDIR) |
166 cmd = '"%s" "%s" -r "--omit=%s"' % ( | 166 cmd = '"%s" "%s" -i -r "--omit=%s"' % ( |
167 sys.executable, os.path.join(TESTDIR, 'coverage.py'), omit) | 167 sys.executable, os.path.join(TESTDIR, 'coverage.py'), omit) |
168 vlog("# Running: "+cmd) | 168 vlog("# Running: "+cmd) |
169 os.system(cmd) | 169 os.system(cmd) |
170 if options.annotate: | 170 if options.annotate: |
171 adir = os.path.join(TESTDIR, 'annotated') | 171 adir = os.path.join(TESTDIR, 'annotated') |
172 if not os.path.isdir(adir): | 172 if not os.path.isdir(adir): |
173 os.mkdir(adir) | 173 os.mkdir(adir) |
174 cmd = '"%s" "%s" -a "--directory=%s" "--omit=%s"' % ( | 174 cmd = '"%s" "%s" -i -a "--directory=%s" "--omit=%s"' % ( |
175 sys.executable, os.path.join(TESTDIR, 'coverage.py'), | 175 sys.executable, os.path.join(TESTDIR, 'coverage.py'), |
176 adir, omit) | 176 adir, omit) |
177 vlog("# Running: "+cmd) | 177 vlog("# Running: "+cmd) |
178 os.system(cmd) | 178 os.system(cmd) |
179 | 179 |