diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 17:48:08 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 17:48:08 +0000 |
commit | 33f7293163d7fe39daf050ab19d70eae44d516dd (patch) | |
tree | 0195259b2f49024075417feb5b8e12b6efb63212 /tools | |
parent | f44ab6280bfc35f86fc21d3ed8153f59281812e3 (diff) | |
download | chromium_src-33f7293163d7fe39daf050ab19d70eae44d516dd.zip chromium_src-33f7293163d7fe39daf050ab19d70eae44d516dd.tar.gz chromium_src-33f7293163d7fe39daf050ab19d70eae44d516dd.tar.bz2 |
diagnose-me: Check that `ninja` is path/to/depot_tools/ninja
BUG=none
TEST=/me receives bonus points
NOTRY=true
Review URL: http://codereview.chromium.org/9415009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/diagnose-me.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/diagnose-me.py b/tools/diagnose-me.py index 16f1f8f..bbd9429 100755 --- a/tools/diagnose-me.py +++ b/tools/diagnose-me.py @@ -67,6 +67,17 @@ def CheckLocalGold(): return None +@Check("random ninja binaries are not in the $PATH") +def CheckPathNinja(): + proc = subprocess.Popen(['which', 'ninja'], stdout=subprocess.PIPE) + stdout = proc.communicate()[0] + if not 'depot_tools' in stdout: + return ("The ninja binary in your path isn't from depot_tools:\n" + + " " + stdout + + "Remove custom ninjas from your path so that the one\n" + "in depot_tools is used.\n") + return None + def RunChecks(): for name, check in all_checks: |