From 90baef866f6addd6d66cefc1907cc5c5ca39d438 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 7 Jun 2015 10:52:31 +0200 Subject: [PATCH] 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 --- src/test/erasure-code/test-erasure-code.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/test/erasure-code/test-erasure-code.sh b/src/test/erasure-code/test-erasure-code.sh index ba62ba57e0fca..ed699b024e3d0 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 -- 2.39.5