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"