diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 19:02:05 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 19:02:05 +0000 |
commit | 85bbc93f895ed0a963dfdfaabf920faef1844341 (patch) | |
tree | 0955bf1963523e99efa967c6d1da0d7be0906d96 /tools/code_coverage | |
parent | 9984f4cf936374b56520d1b625b06f36dc3283d5 (diff) | |
download | chromium_src-85bbc93f895ed0a963dfdfaabf920faef1844341.zip chromium_src-85bbc93f895ed0a963dfdfaabf920faef1844341.tar.gz chromium_src-85bbc93f895ed0a963dfdfaabf920faef1844341.tar.bz2 |
Print current path for debugging.
Not clear why getcwd() doesn't end with 'build' when run on buildbot.
http://buildbot.jail.google.com/buildbot/waterfall.fyi/builders/Linux%20Coverage%20(dbg)/builds/6081/steps/Run%20Coverage%20Bundles/logs/stdio
Review URL: http://codereview.chromium.org/3506006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/code_coverage')
-rwxr-xr-x | tools/code_coverage/coverage_posix.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py index 1b83252..45d6d33 100755 --- a/tools/code_coverage/coverage_posix.py +++ b/tools/code_coverage/coverage_posix.py @@ -316,6 +316,8 @@ class Coverage(object): 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 @@ class Coverage(object): 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 @@ class Coverage(object): # 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 |