From 0eaf747e6ac2b798de07efc3f7157f8e1d517db4 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 13 Jun 2012 16:44:54 +0200 Subject: [PATCH] integration-test: Fix parsing of daemon path in system mode Only take the first word of the Exec= line in the udisks D-BUS service file, so that extra arguments like --no-debug get ignored. With that, integration-test runs fine against the system installed binaries again. --- src/tests/integration-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/integration-test b/src/tests/integration-test index dd9f62e..c09c367 100755 --- a/src/tests/integration-test +++ b/src/tests/integration-test @@ -111,7 +111,7 @@ class UDisksTestCase(unittest.TestCase): daemon_path = None for l in open('/usr/share/dbus-1/system-services/org.freedesktop.UDisks2.service'): if l.startswith('Exec='): - daemon_path = l.split('=', 1)[1].strip() + daemon_path = l.split('=', 1)[1].split()[0] break assert daemon_path, 'could not determine daemon path from D-BUS .service file' -- 2.7.4