Skip to content

Conversation

@thomasd-
Copy link

This PR adds a feature that I needed for my tests.

Basically, we save the content of stdin early in the binstub process to be able to redirect it to the stub command. This way, we can verify what input was given to our stub.

STDIN is only read if it is not a tty, or test will wait forever for some user input.

@lox
Copy link

lox commented Aug 1, 2018

Hiya! I totally missed this.

binstub Outdated
# in a subshell. Otherwise, log the failure.
if [ $result -eq 0 ] ; then
debug "running $command"
debug "command input is $input"
Copy link

Choose a reason for hiding this comment

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

Is the indenting off here?

Copy link
Author

Choose a reason for hiding this comment

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

Yep, sorry, fixed it

@lox lox merged commit 5fefebb into buildkite-plugins:master Aug 2, 2018
@lox
Copy link

lox commented Aug 2, 2018

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants