Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: rtnetlink: print device info on preferred_lft test failure

Even with slowwait used to avoid system sleep in the preferred_lft test,
failures can still occur after long runtimes.

Print the device address info when the test fails to provide better
troubleshooting data.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250819074749.388064-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Hangbin Liu and committed by
Jakub Kicinski
781bf2cc eacb6e40

+2
+2
tools/testing/selftests/net/rtnetlink.sh
··· 313 313 314 314 slowwait 5 check_addr_not_exist "$devdummy" "10.23.11." 315 315 if [ $? -eq 1 ]; then 316 + # troubleshoot the reason for our failure 317 + run_cmd ip addr show dev "$devdummy" 316 318 check_err 1 317 319 end_test "FAIL: preferred_lft addresses remaining" 318 320 return