Skip to content

Commit

Permalink
tests: use erasure_code_plugin_exists from ceph-helpers.sh
Browse files Browse the repository at this point in the history
Instead of the local plugin_exists helper that does the same.

Signed-off-by: Loic Dachary <[email protected]>
  • Loading branch information
ldachary committed Jun 7, 2015
1 parent deb651b commit 90baef8
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/test/erasure-code/test-erasure-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 90baef8

Please sign in to comment.