def get_config(self): testcase_list = [] try: with open(self.conf_path,"r") as f: lines = f.readlines() for line in lines: p = line.split() testcase_list.append( self.parse_benchmark_cases( p ) ) except: common.bash("cp %s %s" % (self.default_conf_path, self.conf_path)) with open(self.conf_path,"r") as f: lines = f.readlines() for line in lines: p = line.split() testcase_list.append( self.parse_benchmark_cases( p ) ) return testcase_list
def get_config(self): testcase_list = [] try: with open(self.conf_path, "r") as f: lines = f.readlines() for line in lines: p = line.split() testcase_list.append(self.parse_benchmark_cases(p)) except: common.bash("cp %s %s" % (self.default_conf_path, self.conf_path)) with open(self.conf_path, "r") as f: lines = f.readlines() for line in lines: p = line.split() testcase_list.append(self.parse_benchmark_cases(p)) return testcase_list