]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rbd: updates to the clone v2 CLI tests
authorJason Dillaman <dillaman@redhat.com>
Mon, 23 Jul 2018 18:58:51 +0000 (14:58 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 24 Jul 2018 12:52:33 +0000 (08:52 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rbd/cli_generic.sh

index adb1ccf06f88733c69522a2fc5a20d37492477d0..0ecb75186bd6a209a18a0681d4fbe5203f14973d 100755 (executable)
@@ -551,7 +551,7 @@ test_clone_v2() {
     rbd snap unprotect test1@1
 
     rbd snap remove test1@1
-    rbd snap list --all test1 | grep -E "trash[ ]*$"
+    rbd snap list --all test1 | grep -E "trash \(1\) *$"
 
     rbd snap create test1@2
     rbd rm test1 2>&1 | grep 'image has snapshots'
@@ -563,6 +563,7 @@ test_clone_v2() {
     rbd rm test1 2>&1 | grep 'linked clones'
 
     rbd flatten test2
+    rbd snap list --all test1 | wc -l | grep '^0$'
     rbd rm test1
     rbd rm test2
 }