Repository navigation
test: ceph_test_objectstore: do not override plugin-dir if not necessary - #9666
Merged
Merged
Conversation
Contributor
Author
|
@ifed01 could you please take a look? thanks. |
| static bool plugin_exists(const string& compressor_dir) | ||
| { | ||
| string path(compressor_dir); | ||
| path += "/libceph_snappy.so"; |
Contributor
There was a problem hiding this comment.
Other plugins will depend on snappy presence that's not good IMHO
Contributor
Author
There was a problem hiding this comment.
@ifed01 how about glob(3) to see if any plugin exists in this directory?
Contributor
Author
There was a problem hiding this comment.
or you'd suggest we check for the existence of the compressor_dir directory instead?
Contributor
There was a problem hiding this comment.
What's about check for non-empty compressor_dir directory?
there is chance that we launch the test with the plugins installed in
`/usr/${lib}/ceph'. and we don't have ".lib" or $CEPH_LIB for
ceph_test_objectstore, in this case, we should leave plugin-dir
unchanged. it will work just fine if ceph-base or ceph-common is
installed.
Fixes: http://tracker.ceph.com/issues/16254
Signed-off-by: Kefu Chai <[email protected]>
tchaikov
force-pushed
the
wip-ceph_test_objectstore
branch
from
June 15, 2016 13:25
57ff489 to
ed19466
Compare
Contributor
Author
|
changelog
@ifed01 could you take a look again? thanks. |
Contributor
|
lgtm! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.