diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-01-13 17:02:51 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-01-13 17:02:51 +0000 |
commit | 432a9df10bd0d8ebbdd5571dbb534262efacef5f (patch) | |
tree | 0c88cbc3005668f04d9e2e4b2b5d859f64bad3e2 /tools | |
parent | fe8dd650a78d535693aabdd5af7116955f65d431 (diff) | |
download | telepathy-glib-432a9df10bd0d8ebbdd5571dbb534262efacef5f.tar.gz |
with-session-bus.sh: only print debug if VERBOSE_TESTS is set
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/with-session-bus.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/with-session-bus.sh b/tools/with-session-bus.sh index 063bd7e17..cfedb5b9d 100755 --- a/tools/with-session-bus.sh +++ b/tools/with-session-bus.sh @@ -59,7 +59,9 @@ cleanup () { pid=`head -n1 $me-$$.pid` if test -n "$pid" ; then - echo "Killing temporary bus daemon: $pid" >&2 + if [ -n "$VERBOSE_TESTS" ]; then + echo "Killing temporary bus daemon: $pid" >&2 + fi kill -INT "$pid" fi rm -f $me-$$.address @@ -69,8 +71,10 @@ cleanup () trap cleanup INT HUP TERM dbus-daemon $dbus_daemon_args -{ echo -n "Temporary bus daemon is "; cat $me-$$.address; } >&2 -{ echo -n "Temporary bus daemon PID is "; head -n1 $me-$$.pid; } >&2 +if [ -n "$VERBOSE_TESTS" ]; then + { echo -n "Temporary bus daemon is "; cat $me-$$.address; } >&2 + { echo -n "Temporary bus daemon PID is "; head -n1 $me-$$.pid; } >&2 +fi e=0 DBUS_SESSION_BUS_ADDRESS="`cat $me-$$.address`" |