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

Order of combined output form shell.RunCommandAndGetOutputE #1228

Closed
mimazaka opened this issue Jan 24, 2023 · 1 comment · Fixed by #1482
Closed

Order of combined output form shell.RunCommandAndGetOutputE #1228

mimazaka opened this issue Jan 24, 2023 · 1 comment · Fixed by #1482

Comments

@mimazaka
Copy link

Hi guys,

I would like to asked if I should expect specific order of lines in output for func shell.RunCommandAndGetOutputE ?

I noticed output struct returns internal merged struct on call of output.Combined(). The second one contains comment that parallel writes should not be allowed.

I noticed that during manual debug of shell.RunCommandAndGetOutputE , especially with some slowdowns inside execution of code within wait group defined in readStdoutAndStderr, I obtained output with mixed lines form stdout and stderr.

Is there any solution to have an output in specific order e.g. standard error data stream first and standard output second?

@denis256
Copy link
Member

Hi,
AFAIK there is no function to return both stdout and stderr - this can be a good improvement for terratest

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 a pull request may close this issue.

2 participants