Print debug info on jctf bot
R=sgjesse@google.com
Bug:
Change-Id: I5fbf55a8ae104649c9570b2edfda263c2d08383f
diff --git a/tools/test.py b/tools/test.py
index 7102207..5e739ec 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -10,6 +10,7 @@
import os
import gradle
import optparse
+import subprocess
import sys
import utils
import uuid
@@ -68,7 +69,19 @@
url = 'http://storage.googleapis.com/%s/%s/index.html' % (BUCKET, u_dir)
print 'Test results available at: %s' % url
+def run_bot_debugging():
+ subprocess.check_call(['cat', '/proc/meminfo'])
+ subprocess.check_call(['ps', 'aux'])
+ print 'ulimit -s'
+ subprocess.check_call('ulimit -s', shell=True)
+
def Main():
+ user = os.environ.get('USER', 'foobar')
+ bot_name = os.environ.get('BUILDBOT_BUILDERNAME')
+ if user == 'chrome-bot' and bot_name == 'linux-jctf':
+ print 'Running temporarily disabled for %s' % user
+ run_bot_debugging()
+ return 0
(options, args) = ParseOptions()
gradle_args = ['cleanTest', 'test']
if len(args) > 1: