From ad2cfccff88ff7ebf79ba77bbdc043cda34e20a1 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 21 Apr 2023 17:22:42 -0400 Subject: tests: Include the command line in the debug log --- tests/src/test-runner.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/src/test-runner.c b/tests/src/test-runner.c index 25a0dd6c..c2b11a23 100644 --- a/tests/src/test-runner.c +++ b/tests/src/test-runner.c @@ -470,6 +470,8 @@ handle_command (const gchar *command) test_runner_command = g_strdup_printf ("PATH=%s LD_PRELOAD=%s LD_LIBRARY_PATH=%s LIGHTDM_TEST_ROOT=%s DBUS_SESSION_BUS_ADDRESS=%s DBUS_SYSTEM_BUS_ADDRESS=%s %s\n", g_getenv ("PATH"), g_getenv ("LD_PRELOAD"), g_getenv ("LD_LIBRARY_PATH"), g_getenv ("LIGHTDM_TEST_ROOT"), g_getenv ("DBUS_SESSION_BUS_ADDRESS"), g_getenv ("DBUS_SYSTEM_BUS_ADDRESS"), command_line->str); + if (getenv ("DEBUG")) + g_print ("Command line: %s\n", test_runner_command); gchar **lightdm_argv; g_autoptr(GError) error = NULL; -- cgit v1.2.1