mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
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:
parent
766df29f00
commit
77c152a933
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user