]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd/cli_generic.sh: relax trash purge schedule status assert
authorIlya Dryomov <idryomov@gmail.com>
Sat, 19 Mar 2022 13:04:52 +0000 (14:04 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Mar 2022 10:16:28 +0000 (11:16 +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 974e3234cdbcd8f36230e65efbe7b0923232b572..6b403c09567dd4a662609439f49ae0ec25103b92 100755 (executable)
@@ -1182,8 +1182,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 |