From 432a9df10bd0d8ebbdd5571dbb534262efacef5f Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Thu, 13 Jan 2011 17:02:51 +0000 Subject: with-session-bus.sh: only print debug if VERBOSE_TESTS is set Signed-off-by: Jonny Lamb --- tools/with-session-bus.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tools') 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`" -- cgit v1.2.1