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

testscript: expose (*TestScript).stdout via Stdout() #216

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

myitcv
Copy link
Collaborator

@myitcv myitcv commented Apr 25, 2023

(see commit message)

@myitcv myitcv force-pushed the expose_testscript_stdout_stderr branch from 4ca5004 to c5cb324 Compare April 25, 2023 19:45
@myitcv myitcv requested review from mvdan and rogpeppe April 25, 2023 19:45
@myitcv
Copy link
Collaborator Author

myitcv commented Apr 25, 2023

Noting previous exchanges in #140

Copy link
Collaborator

@mvdan mvdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we're OK with Stdout/Stderr not being safe for concurrent use.

testscript/testscript.go Outdated Show resolved Hide resolved
@myitcv myitcv force-pushed the expose_testscript_stdout_stderr branch 5 times, most recently from 6d2e77c to d3aa1fd Compare April 26, 2023 19:59
@myitcv
Copy link
Collaborator Author

myitcv commented Apr 26, 2023

@mvdan @rogpeppe - PTAL

Copy link
Collaborator

@mvdan mvdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

testscript/testscript.go Outdated Show resolved Hide resolved
testscript/testscript.go Outdated Show resolved Hide resolved
Similarly, expose (*TestScript).stderr via Stderr().

Closes #139
@myitcv myitcv force-pushed the expose_testscript_stdout_stderr branch from ebf36fa to ca28326 Compare April 27, 2023 07:16
@myitcv myitcv merged commit 22b9127 into master Apr 27, 2023
@myitcv myitcv deleted the expose_testscript_stdout_stderr branch April 27, 2023 13:50
ldemailly pushed a commit to fortio/testscript that referenced this pull request May 7, 2023
Similarly, expose (*TestScript).stderr via Stderr().

Closes rogpeppe#139
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