]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: prepend current directory to PATH for tests
authorLoic Dachary <loic@dachary.org>
Sun, 2 Mar 2014 16:53:08 +0000 (17:53 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 3 Mar 2014 08:28:55 +0000 (09:28 +0100)
So that binaries found in the source directory are always prefered to
installed binaries or scripts.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/mon/mon-test-helpers.sh

index 0196bd9dd08901b9b633244ac6a6a01a15330233..32db2bb30c0ee7f4caff9d5a57a19c775cef7893 100644 (file)
@@ -69,6 +69,8 @@ function kill_daemons() {
 function main() {
     local dir=$1
 
+    export PATH=:$PATH # make sure program from sources are prefered
+
     PS4='${FUNCNAME[0]}: $LINENO: '
     export CEPH_CONF=/dev/null
     unset CEPH_ARGS