Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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