Lines Matching refs:afe
131 def get_labels_from_afe(hostname, label_prefix, afe): argument
145 labels = afe.get_labels(name__startswith=label_prefix,
151 def get_label_from_afe(hostname, label_prefix, afe): argument
164 labels = get_labels_from_afe(hostname, label_prefix, afe)
169 def get_board_from_afe(hostname, afe): argument
181 return get_label_from_afe(hostname, constants.BOARD_PREFIX, afe)
184 def get_build_from_afe(hostname, afe): argument
196 build = get_label_from_afe(hostname, prefix + ':', afe)
349 def lock_host_with_labels(afe, lock_manager, labels): argument
366 potential_hosts = afe.get_hosts(multiple_labels=labels)
786 def wait_for_idle_duts(duts, afe, max_wait=IDLE_DUT_WAIT_TIMEOUT): argument
809 afe_hosts = afe.get_hosts(active_dut_list)
824 def lock_duts_and_wait(duts, afe, lock_msg='default lock message', argument
840 if afe.lock_host(dut, lock_msg, fail_if_locked=True):
844 yield wait_for_idle_duts(locked_duts, afe, max_wait)
846 afe.unlock_hosts(locked_duts)