From: Mykola Golub Date: Mon, 29 Jan 2018 14:52:10 +0000 (+0200) Subject: qa/workunits/rbd: remove "trash purge --threshold" test X-Git-Tag: v13.0.2~375^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20170%2Fhead;p=ceph.git qa/workunits/rbd: remove "trash purge --threshold" test It is difficult to make it work reliably in different environments. Fixes: http://tracker.ceph.com/issues/22803 Signed-off-by: Mykola Golub --- diff --git a/qa/workunits/rbd/cli_generic.sh b/qa/workunits/rbd/cli_generic.sh index a2a94385ce6..d2dc18990c4 100755 --- a/qa/workunits/rbd/cli_generic.sh +++ b/qa/workunits/rbd/cli_generic.sh @@ -462,20 +462,11 @@ test_trash() { remove_images } -test_purge(){ +test_purge() { echo "testing trash purge..." remove_images - for i in {1..3}; - do - rbd create "test$i" -s 4 - rbd bench "test$i" --io-total 4M --io-type write > /dev/null - rbd trash mv "test$i" - done - - rbd trash purge --threshold 1 | grep "Nothing to do" - - rbd trash purge --threshold 0 + rbd trash purge rbd trash ls | wc -l | grep 0 rbd create foo -s 1