Page MenuHomeFreeBSD

Improve debugging output on routing tests failure
ClosedPublic

Authored by melifaro on Apr 23 2021, 9:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 12:46 PM
Unknown Object (File)
Jan 14 2024, 6:40 AM
Unknown Object (File)
Dec 25 2023, 5:09 PM
Unknown Object (File)
Dec 24 2023, 4:11 AM
Unknown Object (File)
Dec 20 2023, 7:01 AM
Unknown Object (File)
Dec 13 2023, 4:03 AM
Unknown Object (File)
Dec 12 2023, 1:28 AM
Unknown Object (File)
Dec 1 2023, 11:39 AM
Subscribers

Details

Summary

Most of the routing tests create per-test VNET, making it harder to repeat the failure with CLI tools.
Provide an additional route/nexthop data on failure.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38836
Build 35725: arc lint + arc unit

Event Timeline

melifaro created this revision.
melifaro retitled this revision from Summary: Improve debugging output on routing tests failure to Improve debugging output on routing tests failure.Apr 23 2021, 9:37 PM
melifaro edited the summary of this revision. (Show Details)
melifaro added a reviewer: network.
kp added inline comments.
tests/sys/net/routing/rtsock_print.h
404

It looks like line is unused here.

409

I think you can just system(cmdbuf); here. That'll fork a shell and inherit our stdout/stderr, so it should do what you want with less effort.

tests/sys/net/routing/rtsock_print.h
409

I started with that.
Due to either buffering or other issues the output from system() calls appears on top, before any other logs, thus making it harder to find/interpret.

This revision is now accepted and ready to land.Apr 24 2021, 7:20 AM