[gvfs] test/run-in-tree.sh: Search session.conf in test directory

commit 909f82902f6ca89290eba6f454e0b5b56d0d1408
Author: Martin Pitt <martinpitt gnome org>
Date:   Fri Oct 12 12:20:32 2012 +0200

    test/run-in-tree.sh: Search session.conf in test directory
    Allow users to call test/run-in-tree.sh from any directory, so that you can e.
    g. run "test/run-in-tree.sh gvfs-mount -li". Without this, run-in-tree.sh only
    finds its session.conf when running this in the tests/ directory.

 test/run-in-tree.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/test/run-in-tree.sh b/test/run-in-tree.sh
index da37929..5c1c0ca 100755
--- a/test/run-in-tree.sh
+++ b/test/run-in-tree.sh
@@ -12,9 +12,11 @@ export GVFS_MONITOR_DIR=`pwd`
 export PATH=`pwd`/../programs:$PATH
 export GIO_EXTRA_MODULES=`pwd`/../client/.libs:`pwd`/../monitor/proxy/.libs
+DBUS_CONF=`dirname $0`/session.conf
 # Start a custom session dbus
-export DBUS_SESSION_BUS_ADDRESS=`dbus-daemon --config-file=$(pwd)/session.conf --fork --print-address=1 --print-pid=3 3>${PIDFILE}`
+export DBUS_SESSION_BUS_ADDRESS=`dbus-daemon --config-file=$DBUS_CONF --fork --print-address=1 --print-pid=3 3>${PIDFILE}`

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]