]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: wait for schedule status updated
authorMykola Golub <mgolub@suse.com>
Thu, 12 Mar 2020 11:43:04 +0000 (11:43 +0000)
committerMykola Golub <mgolub@suse.com>
Thu, 12 Mar 2020 11:47:53 +0000 (11:47 +0000)
Signed-off-by: Mykola Golub <mgolub@suse.com>
qa/workunits/rbd/cli_generic.sh

index 8c45fd0e6f6188ad3cc6a28ac471902cab1b72aa..485cf75437a0fc82f5f09f49a53613d3a72d000a 100755 (executable)
@@ -965,6 +965,12 @@ test_trash_purge_schedule() {
     rbd trash purge schedule ls -p rbd2 -R | grep 'every 2d starting at 00:17'
     rbd trash purge schedule ls -p rbd2/ns1 -R | grep 'every 2d starting at 00:17'
 
+    for i in `seq 12`; do
+        rbd trash purge schedule status --format xml |
+            $XMLSTARLET sel -t -v '//scheduled/item/pool' | grep 'rbd2' && break
+        sleep 10
+    done
+    rbd trash purge schedule status
     rbd trash purge schedule status --format xml |
         $XMLSTARLET sel -t -v '//scheduled/item/pool' | grep 'rbd2'