From 9ed78b25f31ed463b4f2a2cbdb8e4299f4b05797 Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Tue, 13 Oct 2020 14:07:22 +0200 Subject: [PATCH] Fix init script test sometimes failing Signed-off-by: Jan Musial --- test/smoke_test/init_script/03 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/smoke_test/init_script/03 b/test/smoke_test/init_script/03 index 2e89a93..cc7bf3b 100755 --- a/test/smoke_test/init_script/03 +++ b/test/smoke_test/init_script/03 @@ -41,6 +41,8 @@ run_cmd "casctl init" run_cmd "dd if=/dev/urandom of=${DEVICE_NAME}1-2 count=1000 bs=4096 oflag=direct" +run_cmd "udevadm settle" + run_cmd "casctl stop" # We shouldn't be able to start cache on this device, it contains dirty data @@ -63,6 +65,8 @@ run_cmd "casctl init --force" run_cmd "dd if=/dev/urandom of=${DEVICE_NAME}1-2 count=1000 bs=4096 oflag=direct" +run_cmd "udevadm settle" + run_cmd "casctl stop --flush" run_cmd "casadm -S -d ${CACHE_DEVICE}1 --force"