tests: fix dmesg getting in test

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski 2024-10-01 14:37:59 +02:00
parent 004062d9fd
commit cf68fb226b
No known key found for this signature in database

View File

@ -60,9 +60,8 @@ def test_trim_start_discard():
with TestRun.step("Starting cache"): with TestRun.step("Starting cache"):
cache = casadm.start_cache(cas_part, force=True) cache = casadm.start_cache(cas_part, force=True)
dmesg_out = TestRun.executor.run_expect_success("dmesg").stdout
metadata_size = get_metadata_size_on_device(dmesg_out) metadata_size = get_metadata_size_on_device(cache_id=cache.cache_id)
with TestRun.step("Stop blktrace and check if discard requests were issued"): with TestRun.step("Stop blktrace and check if discard requests were issued"):
cache_reqs = blktrace.stop_monitoring() cache_reqs = blktrace.stop_monitoring()