mirror of
https://github.com/ceph/ceph
synced 2025-03-04 23:40:07 +00:00
qa/workunits/rados/test_librados_build.sh: use branch name printed by librados-config
Fixes: https://tracker.ceph.com/issues/42782 Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
c48edcd9f2
commit
ad194519d4
@ -22,7 +22,17 @@ hello_world_cpp
|
||||
"
|
||||
BINARIES="${BINARIES_TO_RUN}hello_radosstriper_cpp
|
||||
"
|
||||
DL_PREFIX="http://git.ceph.com/?p=ceph.git;a=blob_plain;hb=master;f=examples/librados/"
|
||||
# parse output like "octopus (dev)"
|
||||
case $(librados-config --release | grep -Po ' \(\K[^\)]+') in
|
||||
dev)
|
||||
BRANCH=master;;
|
||||
rc|stable)
|
||||
BRANCH=$(librados-config --release | cut -d' ' -f1);;
|
||||
*)
|
||||
echo "unknown release '$(librados-config --release)'" >&2
|
||||
return 1;;
|
||||
esac
|
||||
DL_PREFIX="http://git.ceph.com/?p=ceph.git;a=blob_plain;hb=${BRANCH};f=examples/librados/"
|
||||
#DL_PREFIX="https://raw.githubusercontent.com/ceph/ceph/master/examples/librados/"
|
||||
DESTDIR=$(pwd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user