]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: fix luks encryption cli test on unsupported runs
authorOr Ozeri <oro@il.ibm.com>
Tue, 26 Jan 2021 16:54:05 +0000 (18:54 +0200)
committerJason Dillaman <dillaman@redhat.com>
Tue, 26 Jan 2021 18:40:06 +0000 (13:40 -0500)
This commit changes the luks encryption cli test to return success instead of failure when not supported.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
(cherry picked from commit 2f1eb8eba0f50e59eb42bceb3427be463b249832)

qa/workunits/rbd/luks-encryption.sh

index 6042465ec0d972216acc433ca359a830192309aa..95bbafaedc66d8578ac971885f8f93894cdd2467 100755 (executable)
@@ -52,13 +52,13 @@ function clean_up {
 
 if [[ $(uname) != "Linux" ]]; then
        echo "LUKS encryption tests only supported on Linux"
-       exit 1
+       exit 0
 fi
 
 
 if [[ $(($(ceph-conf --name client.${CEPH_ID} rbd_default_features) & 64)) != 0 ]]; then
        echo "LUKS encryption tests not supported alongside image journaling feature"
-       exit 1
+       exit 0
 fi
 
 clean_up