From 36581db66663f460c9e35223cddeb5c389c18599 Mon Sep 17 00:00:00 2001 From: Piotr Debski Date: Tue, 26 Jul 2022 16:34:18 +0200 Subject: [PATCH 1/2] test_stop_cache_with_mounted_partition fix not matching error message check Signed-off-by: Piotr Debski --- test/functional/api/cas/cli_messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/api/cas/cli_messages.py b/test/functional/api/cas/cli_messages.py index 665fa81..b5c8f10 100644 --- a/test/functional/api/cas/cli_messages.py +++ b/test/functional/api/cas/cli_messages.py @@ -82,7 +82,8 @@ remove_mounted_core = [ ] stop_cache_mounted_core = [ - r"Can\'t stop cache instance \d+\. Device /dev/cas\d+-\d+ is mounted\!" + r"Error while removing cache \d+", + r"Device opens or mount are pending to this cache" ] load_and_force = [ From 11b7f081f14880fbb8d0c91ac8e23d4865c98ee6 Mon Sep 17 00:00:00 2001 From: Piotr Debski Date: Tue, 26 Jul 2022 16:47:31 +0200 Subject: [PATCH 2/2] Fix for test test_interrupt_core_remove Signed-off-by: Piotr Debski --- .../tests/fault_injection/test_fault_injection_interrupts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/tests/fault_injection/test_fault_injection_interrupts.py b/test/functional/tests/fault_injection/test_fault_injection_interrupts.py index 53f7594..c45fb20 100644 --- a/test/functional/tests/fault_injection/test_fault_injection_interrupts.py +++ b/test/functional/tests/fault_injection/test_fault_injection_interrupts.py @@ -240,7 +240,7 @@ def test_interrupt_core_remove(cache_mode, filesystem): wait_for_flushing(cache, core) percentage = casadm_parser.get_flushing_progress(cache.cache_id, core.core_id) while percentage < 50: - percentage = casadm_parser.get_flushing_progress(cache.cache_i, core.core_id) + percentage = casadm_parser.get_flushing_progress(cache.cache_id, core.core_id) TestRun.executor.run(f"kill -s SIGINT {flush_pid}") with TestRun.step(