Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add console keyword to run_command() #14104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

julianneswinoga
Copy link

Supersedes #13968

Currently long-running programs using run_command do not have any output until they have finished. This can give the indication that the configure step is (wrongfully) stuck. Having console output during a long-running run_command also aides in debugging.


I used a pair of threads to monitor the process output pipes (stdout/stderr) where they optionally forward the output to real stdout/stderr and optionally save it for later. This way you can optionally capture the output (for later use) at the same time as it is being shown in console. 🙂

To test this I beefed up the test cases/common/33 run program/meson.build script to output the four cases (capture on/off, console on/off).

…pture

Line ending replace, to fix Windows CI
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.

1 participant