Skip to content

Commit bb555aa

Browse files
liuhangbinNipaLocal
authored andcommitted
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 <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 988c186 commit bb555aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/net/rtnetlink.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ kci_test_addrlft()
313313

314314
slowwait 5 check_addr_not_exist "$devdummy" "10.23.11."
315315
if [ $? -eq 1 ]; then
316+
# troubleshoot the reason for our failure
317+
run_cmd ip addr show dev "$devdummy"
316318
check_err 1
317319
end_test "FAIL: preferred_lft addresses remaining"
318320
return

0 commit comments

Comments
 (0)