]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd/cli_generic.sh: relax trash purge schedule status assert 45530/head
authorIlya Dryomov <idryomov@gmail.com>
Sat, 19 Mar 2022 13:04:52 +0000 (14:04 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 21 Mar 2022 11:43:14 +0000 (12:43 +0100)
Commit 08df6e0fd006 ("qa/workunits/rbd: expand LevelSpec parsing
coverage") didn't account for images with a separate data pool.  This
was missed because of small-cache-pool.yaml breakage.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 90a90ad47dd3140c796ef4da7263c9633d34e841)

qa/workunits/rbd/cli_generic.sh

index 220cef87b253e954e9fa280cade02c13a0315fb9..32c45790fa603fde13166233b0f1cffce2f35870 100755 (executable)
@@ -1179,8 +1179,8 @@ test_trash_purge_schedule() {
     rbd trash purge schedule status
     rbd trash purge schedule status --format xml |
         $XMLSTARLET sel -t -v '//scheduled/item/pool' | grep 'rbd2'
-    test "$(echo $(rbd trash purge schedule status --format xml |
-        $XMLSTARLET sel -t -v '//scheduled/item/pool'))" = 'rbd rbd2 rbd2'
+    echo $(rbd trash purge schedule status --format xml |
+        $XMLSTARLET sel -t -v '//scheduled/item/pool') | grep 'rbd rbd2 rbd2'
     test "$(rbd trash purge schedule status -p rbd --format xml |
         $XMLSTARLET sel -t -v '//scheduled/item/pool')" = 'rbd'
     test "$(echo $(rbd trash purge schedule status -p rbd2 --format xml |