blob: 199e083dd23efbde1a64303dc4b5f156c3b305f1 [file] [log] [blame]
Alex Miller56f1f0d2014-05-16 21:21:00 -07001#!/usr/bin/python
2
3"""
4Finds hosts that are shared between both cautotest and cautotest-cq.
5"""
6
7import common
8from autotest_lib.server import frontend
9
10cautotest = frontend.AFE(server='cautotest')
11cautotest_cq = frontend.AFE(server='cautotest-cq')
12
Alex Miller23122852014-08-21 14:38:53 -070013cautotest_hosts = [x['hostname'] for x in cautotest.run('get_hosts')
14 if not x['locked']]
15cautotest_cq_hosts = [x['hostname'] for x in cautotest_cq.run('get_hosts')
16 if not x['locked']]
Alex Miller56f1f0d2014-05-16 21:21:00 -070017
18for host in cautotest_hosts:
19 if host in cautotest_cq_hosts:
20 print host