tests: allow the flushing thread to flush
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
583af2e229
commit
2f5afff8f2
@ -323,6 +323,7 @@ def test_interrupt_cache_mode_switch_immediately(cache_mode, filesystem):
|
|||||||
with TestRun.step("Start switching cache mode."):
|
with TestRun.step("Start switching cache mode."):
|
||||||
flush_pid = TestRun.executor.run_in_background(cli.set_cache_mode_cmd(
|
flush_pid = TestRun.executor.run_in_background(cli.set_cache_mode_cmd(
|
||||||
str(CacheMode.DEFAULT.name.lower()), str(cache.cache_id), "yes"))
|
str(CacheMode.DEFAULT.name.lower()), str(cache.cache_id), "yes"))
|
||||||
|
wait_for_flushing(cache, core)
|
||||||
|
|
||||||
with TestRun.step("Send interruption signal."):
|
with TestRun.step("Send interruption signal."):
|
||||||
TestRun.executor.run(f"kill -s SIGINT {flush_pid}")
|
TestRun.executor.run(f"kill -s SIGINT {flush_pid}")
|
||||||
|
Loading…
Reference in New Issue
Block a user