Exemplo n.º 1
0
 def read_log(self, path):
     """This function reads the content of a log file without time measuring and deletes the file.
     :param path: string
                  Path to a file
     :return: list of list of string
     """
     lines = []
     with open(path, 'r') as file:
         line = file.readline()
         while line != '':
             values = line.split(',')
             del values[0]  # Drop UUID
             del values[3]  # Drop measured time
             lines.append(values)
             line = file.readline()
     remove_test_logs(path)
     return lines
Exemplo n.º 2
0
 def tearDown(self):
     # Remove all log files
     remove_test_logs()
Exemplo n.º 3
0
 def setUp(self):
     # Remove all log files
     remove_test_logs()