summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2012-10-12 12:20:32 +0200
committerMartin Pitt <martinpitt@gnome.org>2012-10-12 12:20:32 +0200
commit909f82902f6ca89290eba6f454e0b5b56d0d1408 (patch)
tree5f7c0b2a3e16a9837c220118113f522a28a6d97c /test
parent005fdd7da7593541fe5a6a16a4048b00b125ee84 (diff)
downloadgvfs-909f82902f6ca89290eba6f454e0b5b56d0d1408.tar.gz
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.
Diffstat (limited to 'test')
-rwxr-xr-xtest/run-in-tree.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/run-in-tree.sh b/test/run-in-tree.sh
index da37929f..5c1c0ca0 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
PIDFILE=`mktemp`
-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}`
DBUS_SESSION_BUS_PID=`cat $PIDFILE`
rm $PIDFILE