def _check_bkops(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.check_bkops()
def _check_hpb_debug_mode(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.check_hpb_debug_mode()
def __init__(self, elog=None, cspad_x = sxrmotors.user_mmn_10, pi_x = sxrmotors.user_mmn_09, yag_zoom = sxrmotors.user_dumb_32, sam_x = sxrmotors.user_mmn_08, att = sxrmotors.user_mmn_01, yag_focus = sxrmotors.user_dumb_31, yag_x = sxrmotors.user_mmn_02, yag_y = sxrmotors.user_mmn_03, objName = "IH_sikorski_1_2013", presetsfile = "/reg/neh/operator/sxropr/sxr_python/modules/experiments/presets/IH_sikorski_10_2013_presets.py"): Device.__init__(self,objName,pvBase,presetsfile) self.elog = elog self.sam_x = sam_x self.att = att self.pi_x = pi_x self.cspad_x = cspad_x self.yag_zoom = yag_zoom self.yag_focus = yag_focus self.yag_x = yag_x self.yag_y = yag_y self.motors = { "sam_x": self.sam_x, "att": self.att, "yag_x": yag_x, "yag_y": yag_y, "cspad_x": self.cspad_x, "pi_x": self.pi_x, "yag_zoom": self.yag_zoom, "yag_focus": self.yag_focus } pass
def _get_wb_avail_buf(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.get_wb_avail_buf()
def _scan_device(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.scan_device(test_conf['mongo_json'])
def _root_device(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.root_device()
def _get_chip_manufacturer(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.get_chip_manufacturer()
def _get_chip_capacity(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.get_chip_capacity()
def _set_screen(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.set_screen()
def _get_ee_bkops_status(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.get_ee_bkops_status()
def _check_ffu(*args, **kwargs): """ use for ffu status and fw revisoin check in ffu test see usage in main method """ device = Device(test_conf['device_id']) device.check_ffu()
def _clean_fio_file(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.clean_test_file()
def _enable_mtp(*args, **kwargs): """ See usage in main method :return: None """ device = Device(test_conf['device_id']) device.switch_mtp(exp_mtp=True)
def _powerboard_action(*args, **kwargs): """ :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.powerboard_action(*args, **kwargs)
def _statistic_with_chart(*args, **kwargs): """ for fid background process get read or write data and chart see usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.statistic_with_chart(*args, **kwargs)
def _get_flush_time(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.get_flush_time(*args, **kwargs)
def _file_for_assistant_test(*args, **kwargs): """ write fio file for assistant test See usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.file_for_assistant_test(*args, **kwargs)
def _verify_wb_function(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.verify_wb_function(*args, **kwargs)
def _pull_avail_buf(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.pull_avail_buf(*args, **kwargs)
def _enable_hibern(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.enable_hibern(*args, **kwargs)
def _push_bin_action(*args, **kwargs): """ for FFU Tc push fw bin to /data See usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.push_bin_action(*args, **kwargs)
def _wb_avail_buf_restore_loop_check_no_enough(*args, **kwargs): """ check wb_avail_buf make until 100%, restore enough See usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.wb_avail_buf_restore_loop_check_no_enough(*args, **kwargs)
def _reset_hit_count(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.reset_hit_count(*args, **kwargs)
def _get_data_space_and_cur_buf(*args, **kwargs): """ use for performance_data_space_decrease_check see usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.get_data_space_and_cur_buf(*args, **kwargs)
def _check_bkop(*args, **kwargs): """ check bkop status see usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.check_bkop(*args, **kwargs)
def _switch_mtp(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.switch_mtp(*args, **kwargs)
def _wb_avail_buf_restore_loop_check(*args, **kwargs): """ check wb_avail_buf make less 90% ,not restore enough :return: None See usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.wb_avail_buf_restore_loop_check(*args, **kwargs)
def _get_fio_pid(*args, **kwargs): """ get fio pid See usage in main method """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.get_fio_pid(*args, **kwargs)
def _auto_calculate_loops(*args, **kwargs): """ :param args: :param kwargs: :return: """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.auto_calculate_loops(*args, **kwargs)
def initiate_device(): """ Initiate device, like set screen, enable mtp :return: None """ tc_logger.info('==>Start to initiate devices') device = Device(test_conf['device_id']) device.root_device() device.verify_hdmi_connection() device.set_screen() device.switch_mtp(True)