Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: tools/code_coverage/coverage_posix.py

Issue 3506006: Print current path for debugging.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/code_coverage/coverage_posix.py
===================================================================
--- tools/code_coverage/coverage_posix.py (revision 60554)
+++ tools/code_coverage/coverage_posix.py (working copy)
@@ -316,6 +316,8 @@
self.ConfirmPlatformAndPaths()
self.tests = []
self.xvfb_pid = 0
+ logging.info('self.directory: ' + self.directory)
+ logging.info('self.directory_parent: ' + self.directory_parent)
def FindInPath(self, program):
"""Find program in our path. Return abs path to it, or None."""
@@ -722,6 +724,7 @@
def GenerateLcovPosix(self):
"""Convert profile data to lcov on Mac or Linux."""
start_dir = os.getcwd()
+ logging.info('GenerateLcovPosix: start_dir=' + start_dir)
if self.IsLinux():
# With Linux/make (e.g. the coverage_run target), the current
# directory for this command is .../build/src/chrome but we need
@@ -734,11 +737,15 @@
# script be run in a specific directory for all cases (from
# Makefile or from buildbot).
if start_dir.endswith('chrome'):
- print 'coverage_posix.py: doing a "cd .." to accomodate Linux/make PWD'
+ logging.info('coverage_posix.py: doing a "cd .." '
+ 'to accomodate Linux/make PWD')
os.chdir('..')
elif start_dir.endswith('build'):
- print 'coverage_posix.py: doing a "cd src" to accomodate buildbot PWD'
+ logging.info('coverage_posix.py: doing a "cd src" '
+ 'to accomodate buildbot PWD')
os.chdir('src')
+ else:
+ logging.info('coverage_posix.py: NOT changing directory.')
elif self.IsMac():
pass
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698