Skip to content

Conversation

@Flamefire
Copy link
Contributor

Almost every test case starts by getting the path to the test-folder, then to toy-0.0.eb and then reading this file.

Not only makes this harder to read the (relevant part of) the test it also slows it down to read the same file in every test.

Hence I factored those out to file-level constants.

While testing I noticed we don't close the mocked stdout/stderr buffers and added that too

@Flamefire
Copy link
Contributor Author

Rebased

@boegel
Copy link
Member

boegel commented Dec 3, 2025

@Flamefire Needs conflict fixing

Avoid the repaeted reads in almost every test.
The stdin/stdout/stderr handles need be closed by calling `communicate`.
Otherwise the handles will be leaked and e.g.
`test_run_shell_cmd_qa_trace` fails because it may capture a related
warning.
@Flamefire
Copy link
Contributor Author

Rebased to fix

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