]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add a test for rbd rm NOT_EXIST
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Sun, 25 Dec 2016 02:57:34 +0000 (21:57 -0500)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 23 Feb 2017 03:10:59 +0000 (11:10 +0800)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
qa/workunits/rbd/copy.sh

index bb6066acb3ce40e8f19c17f646ce8e30f7c7bf7f..84cacd405dc9f4f889b9790ca8ebc4bdb2f5f8b3 100755 (executable)
@@ -165,6 +165,7 @@ test_remove() {
     echo "testing remove..."
     remove_images
 
+    rbd remove "NOT_EXIST" && exit 1 || true   # remove should fail
     rbd create --image-format 1 -s 1 test1
     rbd rm test1
     rbd ls | wc -l | grep "^0$"