Update TF and functional tests API
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com> Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
committed by
Robert Baldyga
parent
ecbd4fbe30
commit
17f440de10
@@ -64,7 +64,7 @@ def test_load_after_clean_shutdown(reboot_type, cache_mode, filesystem):
|
||||
else:
|
||||
power_control = TestRun.plugin_manager.get_plugin('power_control')
|
||||
power_control.power_cycle()
|
||||
cache_dev.system_path = cache_dev_link.get_target()
|
||||
cache_dev.path = cache_dev_link.get_target()
|
||||
|
||||
with TestRun.step("Load cache."):
|
||||
casadm.load_cache(cache_dev)
|
||||
|
||||
@@ -86,7 +86,7 @@ def test_load_x_to_one_without_params(cache_mode, cleaning_policy, cache_line_si
|
||||
.num_jobs(cores_amount)
|
||||
.cpus_allowed_policy(CpusAllowedPolicy.split))
|
||||
for core in cores:
|
||||
fio.add_job(f"job_{core.core_id}").target(core.system_path)
|
||||
fio.add_job(f"job_{core.core_id}").target(core.path)
|
||||
fio.run()
|
||||
|
||||
with TestRun.step("Stop cache."):
|
||||
@@ -134,7 +134,7 @@ def test_load_x_to_one_without_params(cache_mode, cleaning_policy, cache_line_si
|
||||
.num_jobs(cores_amount)
|
||||
.cpus_allowed_policy(CpusAllowedPolicy.split))
|
||||
for core in cores:
|
||||
fio.add_job(f"job_{core.core_id}").target(core.system_path)
|
||||
fio.add_job(f"job_{core.core_id}").target(core.path)
|
||||
fio.run()
|
||||
|
||||
with TestRun.step("Check if there are no error statistics."):
|
||||
@@ -213,7 +213,7 @@ def test_load_x_to_one_with_params(cache_mode, cleaning_policy, cache_line_size,
|
||||
.num_jobs(cores_amount)
|
||||
.cpus_allowed_policy(CpusAllowedPolicy.split))
|
||||
for core in cores:
|
||||
fio.add_job(f"job_{core.core_id}").target(core.system_path)
|
||||
fio.add_job(f"job_{core.core_id}").target(core.path)
|
||||
fio.run()
|
||||
|
||||
with TestRun.step("Stop cache."):
|
||||
@@ -261,7 +261,7 @@ def test_load_x_to_one_with_params(cache_mode, cleaning_policy, cache_line_size,
|
||||
.num_jobs(cores_amount)
|
||||
.cpus_allowed_policy(CpusAllowedPolicy.split))
|
||||
for core in cores:
|
||||
fio.add_job(f"job_{core.core_id}").target(core.system_path)
|
||||
fio.add_job(f"job_{core.core_id}").target(core.path)
|
||||
fio.run()
|
||||
|
||||
with TestRun.step("Check if there are no error statistics."):
|
||||
@@ -347,7 +347,7 @@ def test_load_x_to_one_diff_params(cache_mode, cleaning_policy, cache_line_size,
|
||||
.num_jobs(cores_amount)
|
||||
.cpus_allowed_policy(CpusAllowedPolicy.split))
|
||||
for core in cores:
|
||||
fio.add_job(f"job_{core.core_id}").target(core.system_path)
|
||||
fio.add_job(f"job_{core.core_id}").target(core.path)
|
||||
fio.run()
|
||||
|
||||
with TestRun.step("Stop cache."):
|
||||
@@ -403,7 +403,7 @@ def test_load_x_to_one_diff_params(cache_mode, cleaning_policy, cache_line_size,
|
||||
.num_jobs(cores_amount)
|
||||
.cpus_allowed_policy(CpusAllowedPolicy.split))
|
||||
for core in cores:
|
||||
fio.add_job(f"job_{core.core_id}").target(core.system_path)
|
||||
fio.add_job(f"job_{core.core_id}").target(core.path)
|
||||
fio.run()
|
||||
|
||||
with TestRun.step("Check if there are no error statistics."):
|
||||
|
||||
@@ -51,7 +51,7 @@ def test_load_occupied_id():
|
||||
caches = casadm_parser.get_caches()
|
||||
if len(caches) != 1:
|
||||
TestRun.LOGGER.error("Inappropriate number of caches after load!")
|
||||
if caches[0].cache_device.system_path != cache_device_2.system_path:
|
||||
if caches[0].cache_device.path != cache_device_2.path:
|
||||
TestRun.LOGGER.error("Wrong cache device system path!")
|
||||
if caches[0].cache_id != 1:
|
||||
TestRun.LOGGER.error("Wrong cache id.")
|
||||
|
||||
Reference in New Issue
Block a user