Merge pull request #550 from imjfckm/fix-nightly

Fix init script test sometimes failing
This commit is contained in:
Robert Baldyga 2020-10-14 13:49:12 +02:00 committed by GitHub
commit 7a87393cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"