From: Loic Dachary Date: Sun, 7 Jun 2015 08:53:49 +0000 (+0200) Subject: tests: skip isa tests if the plugin is not available X-Git-Tag: v9.0.2~31^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d58c07490a1714fa65c8a79cb14248d74a81d88;p=ceph.git tests: skip isa tests if the plugin is not available http://tracker.ceph.com/issues/11905 Fixes: #11905 Signed-off-by: Loic Dachary --- diff --git a/src/test/mon/osd-erasure-code-profile.sh b/src/test/mon/osd-erasure-code-profile.sh index ec5bbc4db91f..38444041eb61 100755 --- a/src/test/mon/osd-erasure-code-profile.sh +++ b/src/test/mon/osd-erasure-code-profile.sh @@ -218,11 +218,15 @@ function TEST_profile_k_sanity() { k=1 \ m=1 || return 1 - expect_failure $dir 'k=1 must be >= 2' \ - ./ceph osd erasure-code-profile set $profile \ - plugin=isa \ - k=1 \ - m=1 || return 1 + if erasure_code_plugin_exists isa ; then + expect_failure $dir 'k=1 must be >= 2' \ + ./ceph osd erasure-code-profile set $profile \ + plugin=isa \ + k=1 \ + m=1 || return 1 + else + echo "SKIP because plugin isa has not been built" + fi expect_failure $dir 'k=1 must be >= 2' \ ./ceph osd erasure-code-profile set $profile \