Skip to content

Don't reopen stdout against the console if it's already redirected - #126

Merged
mhsmith merged 1 commit into
mainfrom
output-capture
Sep 21, 2026
Merged

mhsmith merged 1 commit into
mainfrom
output-capture

Conversation

@freakboy3742

Copy link
Copy Markdown
Member

Briefcase needs to redirect output from the app so it can read test suite results and other log-based exit conditions. If the process has been run connected to a pipe, we need to keep stdout as is; otherwise, reopen so that console output isn't lost.

Refs beeware/briefcase#2969

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool
    Assisted-by: Claude Opus 5

Briefcase needs to redirect output from the app so it can read test suite
results and other log-based exit conditions. If the process has been run
connected to a pipe, we need to keep stdout as is; otherwise, reopen so
that console output isn't lost.
@freakboy3742

Copy link
Copy Markdown
Member Author

I've run the Python 3.14 PySide6 on ARM test 20 times in succession, and it has passed without an error. That isn't perfect evidence the issue is resolved, but it's a strong suggestion.

@freakboy3742

Copy link
Copy Markdown
Member Author

I've also tested that this doesn't invalidate the change from #88 - if you manually run the app, it immediately returns to the command prompt, but stdout is still visible.

@mhsmith
mhsmith merged commit bfe8c1a into main Sep 21, 2026
481 checks passed
@mhsmith
mhsmith deleted the output-capture branch September 21, 2026 10:59
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