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
def tearDown(self): # Remove all log files remove_test_logs()
def setUp(self): # Remove all log files remove_test_logs()