Index: build/scripts/slave/chromium/process_coverage.py |
=================================================================== |
--- build/scripts/slave/chromium/process_coverage.py (revision 163846) |
+++ build/scripts/slave/chromium/process_coverage.py (working copy) |
@@ -80,23 +80,38 @@ |
""" |
target_dir = os.path.join(os.path.dirname(options.build_dir), |
'out', options.target) |
+ if os.path.exists(os.path.join(target_dir, 'total_coverage')): |
+ print "total_coverage directory exists" |
cmp
2012/11/01 23:46:22
single quotes instead of double quotes
pshenoy
2012/11/05 18:47:22
Done.
|
+ total_cov_file = os.path.join(target_dir, 'total_coverage', 'coverage.info') |
+ cmdline = [ |
+ sys.executable, |
+ 'src/tools/code_coverage/croc.py', |
+ '-c', 'src/build/common.croc', |
+ '-c', 'src/build/linux/chrome_linux.croc', |
+ '-i', total_cov_file, |
+ '-r', os.getcwd(), |
+ '--tree', |
+ '--html', os.path.join(target_dir, 'total_coverage', 'coverage_croc_html'), |
cmp
2012/11/01 23:46:22
wrap at 80 chars
pshenoy
2012/11/05 18:47:22
Done.
|
+ ] |
+ main_common(total_cov_file, cmdline) |
- cov_file = os.path.join(target_dir, 'coverage.info') |
+ if os.path.exists(os.path.join(target_dir, 'unittests_coverage')): |
+ print "unittests_coverage directory exists" |
cmp
2012/11/01 23:46:22
single quotes instead of double quotes
pshenoy
2012/11/05 18:47:22
Done.
|
+ unittests_cov_file = os.path.join(target_dir, 'unittests_coverage', 'coverage.info') |
cmp
2012/11/01 23:46:22
wrap at 80 chars
pshenoy
2012/11/05 18:47:22
Done.
|
+ cmdline = [ |
+ sys.executable, |
+ 'src/tools/code_coverage/croc.py', |
+ '-c', 'src/build/common.croc', |
+ '-c', 'src/build/linux/chrome_linux.croc', |
+ '-i', unittests_cov_file, |
+ '-r', os.getcwd(), |
+ '--tree', |
+ '--html', os.path.join(target_dir, 'unittests_coverage', 'coverage_croc_html'), |
cmp
2012/11/01 23:46:22
wrap at 80 chars
pshenoy
2012/11/05 18:47:22
Done.
|
+ ] |
+ main_common(unittests_cov_file, cmdline) |
+ return |
- cmdline = [ |
- sys.executable, |
- 'src/tools/code_coverage/croc.py', |
- '-c', 'src/build/common.croc', |
- '-c', 'src/build/linux/chrome_linux.croc', |
- '-i', cov_file, |
- '-r', os.getcwd(), |
- '--tree', |
- '--html', os.path.join(target_dir, 'coverage_croc_html'), |
- ] |
- return main_common(cov_file, cmdline) |
- |
- |
def main_win(options, args): |
"""Print appropriate size information about built Windows targets. |