Skip to content

driver/rawnetworkinterfacedriver: raise when tcpdump fails to start listening#1924

Merged
Bastian-Krause merged 1 commit into
labgrid-project:masterfrom
Bastian-Krause:bst/rawnetworkinterfacedriver-no-listen
Jul 6, 2026
Merged

driver/rawnetworkinterfacedriver: raise when tcpdump fails to start listening#1924
Bastian-Krause merged 1 commit into
labgrid-project:masterfrom
Bastian-Krause:bst/rawnetworkinterfacedriver-no-listen

Conversation

@Bastian-Krause

Copy link
Copy Markdown
Member

Description
If tcpdump exits cleanly without emitting "tcpdump: listening on" (possibly due to the message being changed), readline() is called on a closed stderr stream, resulting in confusing exceptions. Fix that by raising a proper exception in that case.

Checklist

  • PR has been tested

…istening

If tcpdump exits cleanly without emitting "tcpdump: listening on"
(possibly due to the message being changed), readline() is called on a
closed stderr stream, resulting in confusing exceptions. Fix that by
raising a proper exception in that case.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 61.0%. Comparing base (63749cf) to head (939df09).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
labgrid/driver/rawnetworkinterfacedriver.py 0.0% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1924     +/-   ##
========================================
- Coverage    61.0%   61.0%   -0.1%     
========================================
  Files         182     182             
  Lines       14848   14849      +1     
========================================
  Hits         9067    9067             
- Misses       5781    5782      +1     
Flag Coverage Δ
3.10 61.0% <0.0%> (+<0.1%) ⬆️
3.11 61.0% <0.0%> (-0.1%) ⬇️
3.12 61.0% <0.0%> (-0.1%) ⬇️
3.13 61.0% <0.0%> (-0.1%) ⬇️
3.14 61.0% <0.0%> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Bastian-Krause
Bastian-Krause merged commit 9d09585 into labgrid-project:master Jul 6, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants