]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Thu, 16 Aug 2018 12:07:32 +0000 (08:07 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 1e45d405da522057558182b4a374daba0a4a0a13)

qa/workunits/rbd/cli_generic.sh

index b1c54db4e58b4efff6d8066ccb6800d81dcecd3a..4f5da00416ad35fe6fcf3a6127d8f06f494346e2 100755 (executable)
@@ -543,7 +543,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'
@@ -555,6 +555,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
 }