]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: skip isa tests if the plugin is not available 4888/head
authorLoic Dachary <ldachary@redhat.com>
Sun, 7 Jun 2015 08:53:49 +0000 (10:53 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 7 Jun 2015 08:53:49 +0000 (10:53 +0200)
http://tracker.ceph.com/issues/11905 Fixes: #11905

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/mon/osd-erasure-code-profile.sh

index ec5bbc4db91f1362d59bcd5cfd71cff7919f4d09..38444041eb61b95cfb308bf43b0e2138650b1374 100755 (executable)
@@ -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 \