mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +01:00
test-runner: Add dbus verbose output options
-v dbus may help debug find client authentication problems but if everything is ok it will not print any messages. -v dbus-monitor starts the dbus-monitor.
This commit is contained in:
parent
5d1e24568f
commit
862707f943
@ -529,20 +529,31 @@ static void create_dbus_system_conf(void)
|
|||||||
|
|
||||||
static bool start_dbus_daemon(void)
|
static bool start_dbus_daemon(void)
|
||||||
{
|
{
|
||||||
char *argv[3];
|
char *argv[4];
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
argv[0] = "dbus-daemon";
|
argv[0] = "dbus-daemon";
|
||||||
argv[1] = "--system";
|
argv[1] = "--system";
|
||||||
argv[2] = NULL;
|
argv[2] = "--nosyslog";
|
||||||
|
argv[3] = NULL;
|
||||||
|
|
||||||
pid = execute_program(argv, false, false);
|
if (check_verbosity("dbus"))
|
||||||
|
setenv("DBUS_VERBOSE", "1", true);
|
||||||
|
|
||||||
|
pid = execute_program(argv, false, check_verbosity("dbus"));
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!wait_for_socket("/run/dbus/system_bus_socket", 25 * 10000))
|
if (!wait_for_socket("/run/dbus/system_bus_socket", 25 * 10000))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (check_verbosity("dbus-monitor")) {
|
||||||
|
argv[0] = "dbus-monitor";
|
||||||
|
argv[1] = "--system";
|
||||||
|
argv[2] = NULL;
|
||||||
|
execute_program(argv, false, true);
|
||||||
|
}
|
||||||
|
|
||||||
l_debug("D-Bus is running");
|
l_debug("D-Bus is running");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user