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

commands/cli: fix reading from stdin message #3033

Merged
merged 1 commit into from
Aug 3, 2016

Conversation

whyrusleeping
Copy link
Member

@whyrusleeping whyrusleeping commented Aug 3, 2016

Only print "Reading from /dev/stdin" message when we actually read from
stdin (and not in other cases such as ipfs add --help).

closes #3002

License: MIT
Signed-off-by: Jeromy why@ipfs.io

test_expect_code 1 grep "ipfs: Reading from" add_help_out &&
test_expect_code 1 grep "send Ctrl-d to stop." add_help_out
'

Copy link
Member

Choose a reason for hiding this comment

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

This test would be successful even before the patch, you have to capture both stdout and stderr.

Only print "Reading from /dev/stdin" message when we actually read from
stdin (and not in other cases such as ipfs add --help).

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@whyrusleeping whyrusleeping merged commit 5a831ff into master Aug 3, 2016
@whyrusleeping whyrusleeping deleted the fix/stdin-read-msg branch August 3, 2016 18:19
@Kubuxu
Copy link
Member

Kubuxu commented Aug 3, 2016

LGTM, the mistake in tests got fixed.

@Kubuxu Kubuxu added this to the ipfs-0.4.3-rc2 milestone Aug 3, 2016
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.

Many commands are erroneously printing "Reading from stdin" info message
2 participants