summaryrefslogtreecommitdiffstats
path: root/tools/code_coverage
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 03:00:36 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 03:00:36 +0000
commitedeebc29ebdda26ea794d25aef9525507a43de29 (patch)
tree8c1e31153d0c50d6c227d01461f71bc9172e3a2d /tools/code_coverage
parent390120a47ac9f0bd17bdc5e1800310bff2dea699 (diff)
downloadchromium_src-edeebc29ebdda26ea794d25aef9525507a43de29.zip
chromium_src-edeebc29ebdda26ea794d25aef9525507a43de29.tar.gz
chromium_src-edeebc29ebdda26ea794d25aef9525507a43de29.tar.bz2
Current status:
http://build.chromium.org/buildbot/waterfall.fyi/builders/XP%20Coverage%20%28dbg%29/builds/234/steps/compile/logs/stdio Compiles look fine, and processing looks fine, but when running the test the binary isn't found? Add more logging info to get better data. Review URL: http://codereview.chromium.org/504037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/code_coverage')
-rwxr-xr-xtools/code_coverage/coverage_posix.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py
index 82d663a..13835dc 100755
--- a/tools/code_coverage/coverage_posix.py
+++ b/tools/code_coverage/coverage_posix.py
@@ -52,6 +52,7 @@ import os
import shutil
import subprocess
import sys
+import traceback
class Coverage(object):
"""Doitall class for code coverage."""
@@ -239,8 +240,8 @@ class Coverage(object):
logging.fatal(fulltest + ' does not exist')
if self.options.strict:
sys.exit(2)
- # TODO(jrg): add timeout?
- print >>sys.stderr, 'Running test: ' + fulltest
+ else:
+ logging.info('%s path exists' % fulltest)
cmdlist = [fulltest, '--gtest_print_time']
# If asked, make this REAL fast for testing.
@@ -249,7 +250,13 @@ class Coverage(object):
cmdlist.append('--gtest_filter=CommandLine*')
self.BeforeRunOneTest(fulltest)
- retcode = subprocess.call(cmdlist)
+ logging.info('Running test ' + str(cmdlist))
+ try:
+ retcode = subprocess.call(cmdlist)
+ except: # can't "except WindowsError" since script runs on non-Windows
+ logging.info('EXCEPTION while running a unit test')
+ logging.info(traceback.format_exc())
+ retcode = 999
self.AfterRunOneTest(fulltest)
if retcode: