[Python-checkins] devinabox: Drop the coverage running script; it's so slow only people making a Box should
brett.cannon
python-checkins at python.org
Mon Feb 28 23:03:51 CET 2011
brett.cannon pushed 4314d3836974 to devinabox:
http://hg.python.org/devinabox/rev/4314d3836974
changeset: 25:4314d3836974
user: Brett Cannon <brett at python.org>
date: Sat Feb 26 18:09:20 2011 -0800
summary:
Drop the coverage running script; it's so slow only people making a Box should run it.
files:
run_coverage.py
diff --git a/run_coverage.py b/run_coverage.py
deleted file mode 100755
--- a/run_coverage.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env python
-"""Create a coverage report for CPython"""
-import subprocess
-import os
-import sys
-import build_cpython
-import run_tests
-
-
-def main():
- build_cpython.main()
- executable = run_tests.executable()
- if not executable:
- print('no CPython executable found')
- sys.exit(1)
-
- print('Running coverage ...')
- subprocess.check_call([executable, 'coveragepy', 'run', '--pylib',
- os.path.join('cpython', 'Lib', 'test', 'regrtest.py'),
- ])
- print('Generating report ...')
- subprocess.call([executable, 'coveragepy', 'html', '-i', '--omit',
- '"*/test/*,*/tests/*"', '-d', 'coverage_report'])
- print('Creating symlink ...')
- os.symlink(os.path.join('coverage_report', 'index.html'), 'coverage.html')
-
-
-if __name__ == '__main__':
- main()
--
Repository URL: http://hg.python.org/devinabox
More information about the Python-checkins
mailing list