qa/workunits/rbd: bench-write is part of exclusive option test

Signed-off-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
Mykola Golub 2017-12-25 13:22:59 +02:00
parent 2113ebe02d
commit 47e38ca1b9

View File

@ -170,6 +170,8 @@ _sudo dd if=${DATA} of=${DEV} bs=1M oflag=direct
expect_false timeout 10 \
rbd bench ${IMAGE} --io-type write --io-size=1024 --io-total=1024
_sudo rbd-nbd unmap ${DEV}
DEV=
rbd bench ${IMAGE} --io-type write --io-size=1024 --io-total=1024
# auto unmap test
DEV=`_sudo rbd-nbd map ${POOL}/${IMAGE}`
@ -184,7 +186,4 @@ for i in `seq 10`; do
done
rbd-nbd list-mapped | expect_false grep "^${PID} *${POOL} *${IMAGE}"
DEV=
rbd bench ${IMAGE} --io-type write --io-size=1024 --io-total=1024
echo OK