diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-25 01:47:51 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-25 01:47:51 +0000 |
commit | 928930d76cb018b8a496dbdf7166178ef8fab1bf (patch) | |
tree | fd6a1cb7fd41ac4e27a48609df77935cc463c6af /tools | |
parent | 0c11c3d36ac765850f8807c57f2725cf13211032 (diff) | |
download | chromium_src-928930d76cb018b8a496dbdf7166178ef8fab1bf.zip chromium_src-928930d76cb018b8a496dbdf7166178ef8fab1bf.tar.gz chromium_src-928930d76cb018b8a496dbdf7166178ef8fab1bf.tar.bz2 |
Adjust linux start path.
Should fix the "zero percent coverage" problem.
Review URL: http://codereview.chromium.org/3396024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/code_coverage/coverage_posix.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py index 5eee435..1b83252 100755 --- a/tools/code_coverage/coverage_posix.py +++ b/tools/code_coverage/coverage_posix.py @@ -736,13 +736,11 @@ class Coverage(object): if start_dir.endswith('chrome'): print 'coverage_posix.py: doing a "cd .." to accomodate Linux/make PWD' os.chdir('..') - elif self.IsMac(): - pass - else: - # windows - if start_dir.endswith('build'): + elif start_dir.endswith('build'): print 'coverage_posix.py: doing a "cd src" to accomodate buildbot PWD' os.chdir('src') + elif self.IsMac(): + pass command = [self.mcov, '--directory', |