google / testrun

A tool to automate verification of network-based device behavior
Apache License 2.0
23 stars 9 forks source link

Feature/dhcp disconnect #626

Closed jhughesbiot closed 3 weeks ago

jhughesbiot commented 1 month ago
jboddey commented 1 month ago

Tested and working on a regular Ubuntu laptop. Just want to try it on gLinux again. Only small issue I see is when the disconnect test occurs, an error from scapy/tcpdump is shown because the interface is no longer available. Would it be possible to pause the packet capture for this test?

jhughesbiot commented 1 month ago

Only small issue I see is when the disconnect test occurs, an error from scapy/tcpdump is shown because the interface is no longer available. Would it be possible to pause the packet capture for this test?

Are you referring to this?

WARNING: Socket <scapy.arch.linux.L2ListenSocket object at 0x7fabca1baaf0> failed with '[Errno 100] Network is down'. It was closed.

Seems this is only a warning and I checked all network captures after this log event and they all appear to continue as expected. I think it's just an indication that the physical connection is down but the capture is still active. Stopping and restarting captures during this shouldn't be necessary since it appears to continue on without interruption as expected.