Commit 5f2a196c authored by maruel@chromium.org's avatar maruel@chromium.org

Change the way to detect build slave.

It seems sys.stdout.isatty() is not a good signal on the build slaves.

TBR=bradnelson
TEST=none
BUG=none

Review URL: http://codereview.chromium.org/3342028

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@59131 0039d316-1c4b-4281-b951-d872f2087c98
parent e75e8e68
......@@ -1176,9 +1176,10 @@ def Main(argv):
for fn in dir(sys.modules[__name__]) if fn.startswith('CMD')]))
parser = optparse.OptionParser(version='%prog ' + __version__)
# TODO(maruel): Temporary workaround to disable parallel checkout on
# buildbots until they can correctly parse its output. Uses that fact that
# stdout is redirected as a signal.
if sys.stdout.isatty():
# buildbots until they can correctly parse its output. stdout being
# redirected is not a good signal, at least on linux. Check for environment
# variable instead.
if 'CHROME_HEADLESS' not in os.environ:
jobs = 8
else:
jobs = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment