Commit d51ea8de authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/401657


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 650e9ed5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
}