testing/trigger_scripts/base_test_triggerer.py
def list_bots(self,
                  dimensions,
                  server='chromium-swarm.appspot.com'):
        """List bots having specified bot dimensions.

        Type of returned value is list of
        https://source.chromium.org/search?q=%22class%20BotInfo(messages.Message)%22%20f:luci%2Fappengine%2Fswarming&ssfr=1
        """

        args = [SWARMING_GO, 'bots', '-server', server]

        for key in sorted(dimensions):
            args.extend(['-dimension', '%s=%s' % (key, dimensions[key])])

        logging.info('Running Go `swarming` with args: %s', args)

        with tempfile.NamedTemporaryFile(delete=False) as result_json:
            result_json.close()
            args.extend(['--json', result_json.name])
            subprocess.check_call(args)
            with open(result_json.name) as f:
                return json.load(f)
List bots having specified bot dimensions.

        Type of returned value is list of
        https://source.chromium.org/search?q=%22class%20BotInfo(messages.Message)%22%20f:luci%2Fappengine%2Fswarming&ssfr=1
        
List bots having specified bot dimensions.
List bots having specified bot dimensions .
def list_bots(self,
                  dimensions,
                  server='chromium-swarm.appspot.com'):
        args = [SWARMING_GO, 'bots', '-server', server]
        for key in sorted(dimensions):
            args.extend(['-dimension', '%s=%s' % (key, dimensions[key])])
        logging.info('Running Go `swarming` with args: %s', args)
        with tempfile.NamedTemporaryFile(delete=False) as result_json:
            result_json.close()
            args.extend(['--json', result_json.name])
            subprocess.check_call(args)
            with open(result_json.name) as f:
                return json.load(f)
def list_bots ( self , dimensions , server = 'chromium-swarm.appspot.com' ) : args = [ SWARMING_GO , 'bots' , '-server' , server ] for key in sorted ( dimensions ) : args . extend ( [ '-dimension' , '%s=%s' % ( key , dimensions [ key ] ) ] ) logging . info ( 'Running Go `swarming` with args: %s' , args ) with tempfile . NamedTemporaryFile ( delete = False ) as result_json : result_json . close ( ) args . extend ( [ '--json' , result_json . name ] ) subprocess . check_call ( args ) with open ( result_json . name ) as f : return json . load ( f )
List bots having specified bot dimensions.
List bots having specified bot dimensions .
"""List bots having specified bot dimensions.

        Type of returned value is list of
        https://source.chromium.org/search?q=%22class%20BotInfo(messages.Message)%22%20f:luci%2Fappengine%2Fswarming&ssfr=1
        """
self
dimensions
server