mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
workunits/ceph-helpers.sh: FreeBSD returns a different errorstring.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
parent
eb8b4c8897
commit
e34e18609f
@ -1285,10 +1285,17 @@ function test_wait_for_scrub() {
|
||||
|
||||
function erasure_code_plugin_exists() {
|
||||
local plugin=$1
|
||||
|
||||
local status
|
||||
local grepstr
|
||||
case `uname` in
|
||||
FreeBSD) grepstr="Cannot open.*$plugin" ;;
|
||||
*) grepstr="$plugin.*No such file" ;;
|
||||
esac
|
||||
|
||||
if ceph osd erasure-code-profile set TESTPROFILE plugin=$plugin 2>&1 |
|
||||
grep "$plugin.*No such file" ; then
|
||||
grep "$grepstr" ; then
|
||||
# display why the string was rejected.
|
||||
ceph osd erasure-code-profile set TESTPROFILE plugin=$plugin
|
||||
status=1
|
||||
else
|
||||
status=0
|
||||
|
Loading…
Reference in New Issue
Block a user