]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rbd: bench-write is part of exclusive option test
authorMykola Golub <mgolub@suse.com>
Mon, 25 Dec 2017 11:22:59 +0000 (13:22 +0200)
committerMykola Golub <mgolub@suse.com>
Mon, 25 Dec 2017 15:19:49 +0000 (17:19 +0200)
Signed-off-by: Mykola Golub <mgolub@suse.com>
qa/workunits/rbd/rbd-nbd.sh

index 84bdd217e27ced34678e829ad8e57744f1ae75d8..e9547e92853a3e06da1f7924d5dc1690715e94b6 100755 (executable)
@@ -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