From 1e45d405da522057558182b4a374daba0a4a0a13 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 23 Jul 2018 14:58:51 -0400 Subject: [PATCH] qa/workunits/rbd: updates to the clone v2 CLI tests Signed-off-by: Jason Dillaman --- qa/workunits/rbd/cli_generic.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/workunits/rbd/cli_generic.sh b/qa/workunits/rbd/cli_generic.sh index adb1ccf06f8..0ecb75186bd 100755 --- a/qa/workunits/rbd/cli_generic.sh +++ b/qa/workunits/rbd/cli_generic.sh @@ -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 } -- 2.47.3