tests/run-tests.py
changeset 4318 b95a42114616
parent 3776 037824e6d362
child 4319 8ece1ba156c7
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