def __init__(self): """ Constructor TestNVMeUncor """ TestNVMeIO.__init__(self) self.start_block = 1023 self.setup_log_dir(self.__class__.__name__) self.write_file = self.test_log_dir + "/" + self.write_file self.read_file = self.test_log_dir + "/" + self.read_file self.create_data_file(self.write_file, self.data_size, "15") open(self.read_file, 'a').close()
def __init__(self): """ Pre Section for TestNVMeCompareCmd """ TestNVMeIO.__init__(self) self.data_size = 1024 self.start_block = 1023 self.setup_log_dir(self.__class__.__name__) self.compare_file = self.test_log_dir + "/" + "compare_file.txt" self.write_file = self.test_log_dir + "/" + self.write_file self.create_data_file(self.write_file, self.data_size, "15") self.create_data_file(self.compare_file, self.data_size, "25")
def __init__(self): """ Pre Section for TestNVMeReadWriteTest """ TestNVMeIO.__init__(self) self.start_block = 1023 self.test_log_dir = self.log_dir + "/" + self.__class__.__name__ self.setup_log_dir(self.__class__.__name__) self.write_file = self.test_log_dir + "/" + self.write_file self.read_file = self.test_log_dir + "/" + self.read_file self.create_data_file(self.write_file, self.data_size, "15") open(self.read_file, 'a').close()
def __init__(self): """ Pre Section for TestNVMeWriteZeros """ TestNVMeIO.__init__(self) self.start_block = 1023 self.block_count = 0 self.setup_log_dir(self.__class__.__name__) self.write_file = self.test_log_dir + "/" + self.write_file self.read_file = self.test_log_dir + "/" + self.read_file self.zero_file = self.test_log_dir + "/" + "zero_file.txt" self.create_data_file(self.write_file, self.data_size, "15") self.create_data_file(self.zero_file, self.data_size, '\0') open(self.read_file, 'a').close()
def __del__(self): """ Post Section for TestNVMeUncor """ TestNVMeIO.__del__(self)
def __del__(self): """ Post Section for TestNVMeCompareCmd """ TestNVMeIO.__del__(self)
def __del__(self): """ Post Section for TestNVMeReadWriteTest """ TestNVMeIO.__del__(self)
def __del__(self): """ Post Section for TestNVMeWriteZeros """ TestNVMeIO.__del__(self)