From d51ea8deb4d0f9839c042ece4081f647c01874f5 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 27 Feb 2018 10:30:22 -0700 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/401657 Tested-by: SPDK Automated Test System Reviewed-by: Changpeng Liu --- test/common/autotest_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index c19dcc73d..37ce52b38 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -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 }