From: Loic Dachary Date: Sun, 7 Jun 2015 08:52:31 +0000 (+0200) Subject: tests: use erasure_code_plugin_exists from ceph-helpers.sh X-Git-Tag: v9.0.2~31^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90baef866f6addd6d66cefc1907cc5c5ca39d438;p=ceph.git tests: use erasure_code_plugin_exists from ceph-helpers.sh Instead of the local plugin_exists helper that does the same. Signed-off-by: Loic Dachary --- diff --git a/src/test/erasure-code/test-erasure-code.sh b/src/test/erasure-code/test-erasure-code.sh index ba62ba57e0fc..ed699b024e3d 100755 --- a/src/test/erasure-code/test-erasure-code.sh +++ b/src/test/erasure-code/test-erasure-code.sh @@ -101,20 +101,6 @@ function rados_put_get() { rm $dir/ORIGINAL } -function plugin_exists() { - local plugin=$1 - - local status - if ./ceph osd erasure-code-profile set TESTPROFILE plugin=$plugin 2>&1 | - grep "$plugin.*No such file" ; then - status=1 - else - status=0 - ./ceph osd erasure-code-profile rm TESTPROFILE - fi - return $status -} - function TEST_rados_put_get_lrc_advanced() { local dir=$1 local poolname=pool-lrc-a @@ -153,7 +139,7 @@ function TEST_rados_put_get_lrc_kml() { } function TEST_rados_put_get_isa() { - if ! plugin_exists isa ; then + if ! erasure_code_plugin_exists isa ; then echo "SKIP because plugin isa has not been built" return 0 fi