| Index: build/android/buildbot/bb_run_bot.py
|
| diff --git a/build/android/buildbot/bb_run_bot.py b/build/android/buildbot/bb_run_bot.py
|
| index 6644bf794285e9289375f6b1ba2ac6b242686861..d09bd3198f5d770bba8293f4d582ad60a39e6cd6 100755
|
| --- a/build/android/buildbot/bb_run_bot.py
|
| +++ b/build/android/buildbot/bb_run_bot.py
|
| @@ -273,6 +273,17 @@ def RunBotCommands(options, commands, env):
|
|
|
|
|
| def main(argv):
|
| + proc = subprocess.Popen(
|
| + ['/bin/hostname', '-f'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| + hostname_stdout, hostname_stderr = proc.communicate()
|
| + if proc.returncode == 0:
|
| + print 'Running on: ' + hostname_stdout
|
| + else:
|
| + print >> sys.stderr, 'WARNING: failed to run hostname'
|
| + print >> sys.stderr, hostname_stdout
|
| + print >> sys.stderr, hostname_stderr
|
| + sys.exit(1)
|
| +
|
| parser = GetRunBotOptParser()
|
| options, args = parser.parse_args(argv[1:])
|
| if args:
|
|
|