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
@@ -42,7 +42,7 @@ def test_write_fetch_full_misses(cache_mode, cache_line_size):
|
||||
io_stats_before_io = cache_disk.get_io_stats()
|
||||
blocksize = cache_line_size.value / 2
|
||||
skip_size = cache_line_size.value / 2
|
||||
run_fio(target=core.system_path,
|
||||
run_fio(target=core.path,
|
||||
operation_type=ReadWrite.write,
|
||||
skip=skip_size,
|
||||
blocksize=blocksize,
|
||||
@@ -87,7 +87,7 @@ def test_write_fetch_partial_misses(cache_mode, cache_line_size):
|
||||
with TestRun.step("Fill core partition with pattern."):
|
||||
cache_mode_traits = CacheMode.get_traits(cache_mode)
|
||||
if CacheModeTrait.InsertRead in cache_mode_traits:
|
||||
run_fio(target=core_part.system_path,
|
||||
run_fio(target=core_part.path,
|
||||
operation_type=ReadWrite.write,
|
||||
blocksize=Size(4, Unit.KibiByte),
|
||||
io_size=io_size,
|
||||
@@ -103,7 +103,7 @@ def test_write_fetch_partial_misses(cache_mode, cache_line_size):
|
||||
with TestRun.step("Cache half of file."):
|
||||
operation_type = ReadWrite.read if CacheModeTrait.InsertRead in cache_mode_traits \
|
||||
else ReadWrite.write
|
||||
run_fio(target=core.system_path,
|
||||
run_fio(target=core.path,
|
||||
operation_type=operation_type,
|
||||
skip=cache_line_size.value,
|
||||
blocksize=cache_line_size.value,
|
||||
@@ -117,7 +117,7 @@ def test_write_fetch_partial_misses(cache_mode, cache_line_size):
|
||||
io_stats_before_io = cache_disk.get_io_stats()
|
||||
blocksize = cache_line_size.value / 2 * 3
|
||||
skip_size = cache_line_size.value / 2
|
||||
run_fio(target=core.system_path,
|
||||
run_fio(target=core.path,
|
||||
operation_type=ReadWrite.write,
|
||||
skip=skip_size,
|
||||
blocksize=blocksize,
|
||||
|
@@ -41,8 +41,8 @@ def test_trim_start_discard():
|
||||
non_cas_part = dev.partitions[1]
|
||||
|
||||
with TestRun.step("Writing different pattern on partitions"):
|
||||
cas_fio = write_pattern(cas_part.system_path)
|
||||
non_cas_fio = write_pattern(non_cas_part.system_path)
|
||||
cas_fio = write_pattern(cas_part.path)
|
||||
non_cas_fio = write_pattern(non_cas_part.path)
|
||||
cas_fio.run()
|
||||
non_cas_fio.run()
|
||||
|
||||
@@ -206,15 +206,15 @@ def check_discards(discards_count, device, discards_expected):
|
||||
if discards_expected:
|
||||
if discards_count > 0:
|
||||
TestRun.LOGGER.info(
|
||||
f"{discards_count} TRIM instructions generated for {device.system_path}")
|
||||
f"{discards_count} TRIM instructions generated for {device.path}")
|
||||
else:
|
||||
TestRun.LOGGER.error(f"No TRIM instructions found in requests to {device.system_path}")
|
||||
TestRun.LOGGER.error(f"No TRIM instructions found in requests to {device.path}")
|
||||
else:
|
||||
if discards_count > 0:
|
||||
TestRun.LOGGER.error(
|
||||
f"{discards_count} TRIM instructions generated for {device.system_path}")
|
||||
f"{discards_count} TRIM instructions generated for {device.path}")
|
||||
else:
|
||||
TestRun.LOGGER.info(f"No TRIM instructions found in requests to {device.system_path}")
|
||||
TestRun.LOGGER.info(f"No TRIM instructions found in requests to {device.path}")
|
||||
|
||||
|
||||
def start_monitoring(core_dev, cache_dev, cas_dev):
|
||||
|
Reference in New Issue
Block a user