Blame SOURCES/0001-name-test-Don-t-run-test-autolaunch-if-we-don-t-have.patch

d75546
From 116f212581c93dba56ce5bc7b3f28237b2940145 Mon Sep 17 00:00:00 2001
d75546
From: Colin Walters <walters@verbum.org>
d75546
Date: Thu, 18 Jul 2013 15:14:58 -0400
d75546
Subject: [PATCH] name-test: Don't run test-autolaunch if we don't have dbus-launch
d75546
d75546
libdbus will look for its compiled-in path to find dbus-launch, and
d75546
not find it when running in a buildroot that doesn't have dbus
d75546
installed (the typical case for pbuilder/mock).
d75546
---
d75546
 test/name-test/run-test.sh |    6 +++++-
d75546
 1 files changed, 5 insertions(+), 1 deletions(-)
d75546
d75546
diff --git a/test/name-test/run-test.sh b/test/name-test/run-test.sh
d75546
index cad5937..0bb0aee 100755
d75546
--- a/test/name-test/run-test.sh
d75546
+++ b/test/name-test/run-test.sh
d75546
@@ -57,4 +57,8 @@ elif ! $PYTHON $DBUS_TOP_SRCDIR/test/name-test/test-activation-forking.py; then
d75546
 fi
d75546
 
d75546
 echo "running test-autolaunch"
d75546
-${DBUS_TOP_BUILDDIR}/libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/name-test/test-autolaunch || die "test-autolaunch failed"
d75546
+if which dbus-launch 2>/dev/null; then
d75546
+    ${DBUS_TOP_BUILDDIR}/libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/name-test/test-autolaunch || die "test-autolaunch failed"
d75546
+else
d75546
+    echo "Skipping test-autolaunch, no dbus-launch in $PATH"
d75546
+fi
d75546
-- 
d75546
1.7.1
d75546