testing/trigger_scripts/base_test_triggerer.py
def list_tasks(self, tags, limit=None,
                   server='chromium-swarm.appspot.com'):
        """List bots having specified task tags.

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

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

        for tag in sorted(tags):
            args.extend(['-tag', tag])

        if limit is not None:
            args.extend(['-limit', str(limit)])

        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 task tags.

        Type of returned value is list of
        https://source.chromium.org/search?q=%22class%20TaskResult(messages.Message):%22%20f:luci%2Fappengine%2Fswarming&ssfr=1
        
List bots having specified task tags.
List bots having specified task tags .
def list_tasks(self, tags, limit=None,
                   server='chromium-swarm.appspot.com'):
        args = [SWARMING_GO, 'tasks', '-server', server]
        for tag in sorted(tags):
            args.extend(['-tag', tag])
        if limit is not None:
            args.extend(['-limit', str(limit)])
        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_tasks ( self , tags , limit = None , server = 'chromium-swarm.appspot.com' ) : args = [ SWARMING_GO , 'tasks' , '-server' , server ] for tag in sorted ( tags ) : args . extend ( [ '-tag' , tag ] ) if limit is not None : args . extend ( [ '-limit' , str ( limit ) ] ) 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 task tags.
List bots having specified task tags .
"""List bots having specified task tags.

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