scripts/ceph: remove subshell and cd
The Ceph scripts can now be run from any directory; they don't depend on their $PWD being the script location anymore. Change-Id: Iff883a3e9b8ba2d0a6193e2f5c047eb9d7d423fd Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/401657 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
650e9ed56e
commit
d51ea8deb4
@ -312,14 +312,14 @@ function rbd_setup() {
|
||||
if hash ceph; then
|
||||
export RBD_POOL=rbd
|
||||
export RBD_NAME=foo
|
||||
(cd $rootdir/scripts/ceph && ./start.sh)
|
||||
$rootdir/scripts/ceph/start.sh
|
||||
rbd create $RBD_NAME --size 1000
|
||||
fi
|
||||
}
|
||||
|
||||
function rbd_cleanup() {
|
||||
if hash ceph; then
|
||||
(cd $rootdir/scripts/ceph && ./stop.sh || true)
|
||||
$rootdir/scripts/ceph/stop.sh || true
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user