Fix init script test sometimes failing

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2020-10-13 14:07:22 +02:00
parent 0a97be8cc6
commit 9ed78b25f3

View File

@ -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"