Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workunits/ceph-helpers.sh: FreeBSD returns a different errorstring. #12005

Merged
merged 1 commit into from Nov 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions qa/workunits/ceph-helpers.sh
Expand Up @@ -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
Expand Down