def setUp(self): """ Pre section of testcase """ self.loopdev = Loopback(self.mount_path, self.data_size, self.block_size, self.nr_dev) self.loopdev.init() self.build_target_config(self.loopdev.dev_list) super(TestNVMFMKFS, self).common_setup()
def setUp(self): """ Pre section of testcase """ self.loopdev = Loopback(self.mount_path, self.data_size, self.block_size, self.nr_dev) self.loopdev.init() self.build_target_config(self.loopdev.dev_list) self.target_subsys = NVMFTarget(self.target_type)
def setUp(self): """ Pre section of testcase """ self.loopdev = Loopback(self.mount_path, self.data_size, self.block_size, self.nr_dev) self.loopdev.init() self.build_target_config(self.loopdev.dev_list) self.target_subsys = NVMFTarget(self.target_type) ret = self.target_subsys.config(self.target_config_file) assert_equal(ret, True, "ERROR : target config failed")
def setUp(self): """ Pre section of testcase """ self.loopdev = Loopback(self.mount_path, self.data_size, self.block_size, self.nr_dev) self.loopdev.init() self.build_target_config(self.loopdev.dev_list) self.dd_read_traffic = { "IO_TYPE": "dd", "IODIR": "read", "THREAD": __run_traffic__, "IF": None, "OF": "/dev/null", "BS": "4K", "COUNT": str(self.data_size / self.block_size), "RC": 0 } super(TestNVMFHostTraffic, self).common_setup()