]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: remove "trash purge --threshold" test 20170/head
authorMykola Golub <mgolub@suse.com>
Mon, 29 Jan 2018 14:52:10 +0000 (16:52 +0200)
committerMykola Golub <mgolub@suse.com>
Thu, 1 Feb 2018 15:36:21 +0000 (17:36 +0200)
It is difficult to make it work reliably in different environments.

Fixes: http://tracker.ceph.com/issues/22803
Signed-off-by: Mykola Golub <mgolub@suse.com>
qa/workunits/rbd/cli_generic.sh

index a2a94385ce6352e6817e07947cb727b0e7397ea4..d2dc18990c4c71a65b2b0a7ef62baabdfa33311e 100755 (executable)
@@ -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