From 9ddb7dad28a2122317b0551884640afdf14deadb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 9 Jun 2023 07:49:54 +0000 Subject: [PATCH] test: Run "ip -d link" to show the status of the environment Signed-off-by: Michael Tremer --- test/networkd/test.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/networkd/test.sh b/test/networkd/test.sh index 2af7479f..a22aeb37 100644 --- a/test/networkd/test.sh +++ b/test/networkd/test.sh @@ -42,6 +42,19 @@ run_script() { return 0 } +dump_command() { + echo "Output of $@" + + # Run the command + $@ 2>&1 + + echo "EOF" +} + +dump_status() { + dump_command "ip -d link" +} + # Launches networkd in the background launch_networkd() { echo "Launching networkd..." @@ -54,6 +67,9 @@ launch_networkd() { terminate_networkd() { if [ -n "${networkd_PID}" ]; then + # Collect some status information + dump_status + # Send SIGTERM kill -TERM "${networkd_PID}" -- 2.47.3