From: Michael Tremer Date: Fri, 9 Jun 2023 07:49:54 +0000 (+0000) Subject: test: Run "ip -d link" to show the status of the environment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ddb7dad28a2122317b0551884640afdf14deadb;p=people%2Fms%2Fnetwork.git test: Run "ip -d link" to show the status of the environment Signed-off-by: Michael Tremer --- 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}"