def __init__(self, jobs_xml, job_node, tool, tarball): self.lpt_root = LPTPATH self.tarball = tarball self.tarpath = os.path.join(TOOLS_DIR, tarball) self.src_dir = SRC_DIR self.tools_dir = TOOLS_DIR self.bin_dir = BIN_DIR self.results_dir = RESULTS_DIR self.tmp_dir = TMP_DIR self.result_xml = lptxml.get_job_result_file(jobs_xml=jobs_xml, job_node=job_node) self.jobs_xml = jobs_xml self.job_node = job_node self.tool = tool self.mainParameters = {"parameters": "N/A"} if tarball[-2:] == "gz": self.tar_src_dir = os.path.join(SRC_DIR, tarball[:-7]) elif tarball[-3:] == "bz2": self.tar_src_dir = os.path.join(SRC_DIR, tarball[:-8]) else: self.tar_src_dir = os.path.join(SRC_DIR, tarball[:-4]) super(BaseTest, self).__init__(self.result_xml) #定义可执行文件 self.processBin = None self.processBin2 = None #定义result结构,list self.result_list = []
def __init__(self, jobs_xml, job_node, tool, tarball): self.lpt_root = LPTPATH self.tarball = tarball self.tarpath = os.path.join(TOOLS_DIR, tarball) self.src_dir = SRC_DIR self.tools_dir = TOOLS_DIR self.bin_dir = BIN_DIR self.results_dir = RESULTS_DIR self.tmp_dir = TMP_DIR self.result_xml = lptxml.get_job_result_file(jobs_xml=jobs_xml, job_node=job_node) self.jobs_xml = jobs_xml self.job_node = job_node self.tool = tool self.mainParameters={"parameters":"N/A"} if tarball[-2:] == "gz": self.tar_src_dir = os.path.join(SRC_DIR, tarball[:-7]) elif tarball[-3:] == "bz2": self.tar_src_dir = os.path.join(SRC_DIR, tarball[:-8]) else: self.tar_src_dir = os.path.join(SRC_DIR, tarball[:-4]) super(BaseTest, self).__init__(self.result_xml) #定义可执行文件 self.processBin = None self.processBin2 = None #定义result结构,list self.result_list = []
def __init__(self, tool, jobs_xml=jobsxml): self.lptdir = LPTPATH self.lptsrcdir = lptsrcdir self.lpttoolsdir = lpttoolsdir self.lptbindir = lptbindir self.lptresultsdir = lptresultsdir self.lptdbdir = lptdbdir self.lpttmpdir = lpttmpdir self.result_xml = lptxml.get_job_result_file(jobs_xml=jobs_xml) self.jobs_xml = jobs_xml self.tool = tool self.mainParameters={"parameters":"N/A"} super(BaseTest, self).__init__(self.result_xml) self.result_list = []
def __init__(self, tool, jobs_xml=jobsxml): self.lptdir = LPTPATH self.lptsrcdir = lptsrcdir self.lpttoolsdir = lpttoolsdir self.lptbindir = lptbindir self.lptresultsdir = lptresultsdir self.lptdbdir = lptdbdir self.lpttmpdir = lpttmpdir self.result_xml = lptxml.get_job_result_file(jobs_xml=jobs_xml) self.jobs_xml = jobs_xml self.tool = tool self.mainParameters = {"parameters": "N/A"} super(BaseTest, self).__init__(self.result_xml) self.result_list = []