From be60490f152cab9881eebc777bc2c1684de153f1 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Mon, 29 Jan 2018 16:52:10 +0200 Subject: [PATCH] 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 --- qa/workunits/rbd/cli_generic.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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 -- 2.39.5