Home | History | Annotate | Download | only in site_utils

Lines Matching full:board

32 def get_matched_hosts(board, pool):
33 """Get duts with matching board and pool labels from metaDB.
35 @param board: board of DUT, set to None if board doesn't need to match.
37 @return: A list of duts that match the specified board and pool.
42 if board:
43 labels.append('board:%s' % board)
289 @param board: Name of the board to look for history. Default is None.
305 def get_intervals_for_hosts(t_start, t_end, hosts=None, board=None, pool=None):
306 """Gets intervals for given hosts or board/pool.
309 If a list of hosts is provided, the board and pool constraints are ignored.
310 If hosts is set to None, and board or pool is set, this method will attempt
313 If hosts, board and pool are all set to None, return intervals for all
321 @param board: Name of the board to look for history. Default is None.
330 hosts = get_matched_hosts(board, pool)
332 raise NoHostFoundException('No host is found for board:%s, pool:%s.'
333 % (board, pool))
335 if board:
336 equality_constraints.append(('labels', 'board:'+board))
352 # In case the host's board or pool label was modified after
362 def get_report(t_start, t_end, hosts=None, board=None, pool=None,
364 """Gets history for given hosts or board/pool
366 If a list of hosts is provided, the board and pool constraints are ignored.
371 @param board: Name of the board to look for history. Default is None.
379 board=None
382 hosts_intervals = get_intervals_for_hosts(t_start, t_end, hosts, board,