Skip to content

Conversation

@ImHoppy
Copy link

@ImHoppy ImHoppy commented Dec 11, 2025

Description

Add a stderr parameter to the ProcessWrapper, allowing the separation of stderr from the output. In my driver, I use this feature to ignore stderr by redirecting it to subprocess.DEVNULL

what do you use the feature for?
It allows calling ProcessWrapper without having stderr polluting the standard output.

how does labgrid benefit as a testing library from the feature?
This feature is used in my custom IpmiPowerDriver to check the status without having debug messages mixed.

how did you verify the feature works?
I tested the feature with a DUT in my labs.

if hardware is needed for the feature, which hardware is supported and which
hardware did you test with?

No specific hardware is required


Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and descriptions in doc/configuration.rst have been updated
  • Add a section in doc/usage.rst to explain how to use the feature
  • Add a section in doc/development.rst to explain how developers can use the feature
  • PR has been tested locally
  • Man pages have been regenerated

@ImHoppy ImHoppy force-pushed the util/processwrapper branch from d219663 to c6430e2 Compare December 12, 2025 08:25
@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.1%. Comparing base (0c01c19) to head (c6430e2).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1787   +/-   ##
======================================
  Coverage    45.1%   45.1%           
======================================
  Files         172     172           
  Lines       13608   13610    +2     
======================================
+ Hits         6144    6146    +2     
  Misses       7464    7464           
Flag Coverage Δ
3.10 45.1% <100.0%> (+<0.1%) ⬆️
3.11 45.1% <100.0%> (+<0.1%) ⬆️
3.12 45.1% <100.0%> (+<0.1%) ⬆️
3.13 45.1% <100.0%> (+<0.1%) ⬆️
3.14 45.1% <100.0%> (+<0.1%) ⬆️
3.9 45.2% <100.0%> (+<0.1%) ⬆️

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

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

@jluebbe
Copy link
Member

jluebbe commented Dec 17, 2025

Please add the description to the commit.

Allow separation of stderr from the output. For example, stderr can be ignored by redirecting it to subprocess.DEVNULL.

Signed-off-by: Hoppy <[email protected]>
@ImHoppy ImHoppy force-pushed the util/processwrapper branch from c6430e2 to f527ac8 Compare December 17, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants