summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2023-04-21 17:22:42 -0400
committerRobert Ancell <robert.ancell@gmail.com>2023-04-26 09:33:47 +1200
commitad2cfccff88ff7ebf79ba77bbdc043cda34e20a1 (patch)
treec8ecf716a9b7e1f8113cf2555c197f7d936ce7e6
parent899cc3a51619f81c808cfb2b62ff11dc7d5b478a (diff)
downloadlightdm-git-ad2cfccff88ff7ebf79ba77bbdc043cda34e20a1.tar.gz
tests: Include the command line in the debug log
-rw-r--r--tests/src/test-runner.c2
1 files changed, 2 insertions, 0 deletions
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;