-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Improve stdin parsing #1238
Improve stdin parsing #1238
Conversation
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This should fix issue #1141 (ipfs cat "multihash too short" error when using stdin) and perhaps others. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Some tests failed with:
and one with:
|
stringArgs, stdin, err = appendStdinAsString(stringArgs, stdin) | ||
if err != nil { | ||
return nil, nil, err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im not sure this works with all commands-- do we have a case where we use both arguments AND stdin? maybe some of the ipfs object put
type things? (although those commands are not very intuitive right now, so perhaps they can change)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in general, this part of the cmdslib is a bit of a mess. ideas to clean it up would be great.
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This should fix issue #1196 (Can't launch a command line process from Qt). The check was bad because it took stdin into account, but it really shouldn't. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
@whyrusleeping PTAL? |
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
499f8d6
to
275ec7c
Compare
@jbenet @whyrusleeping I just added more improvements, tests and a fix for issue #1196 (Can't launch a command line process from Qt). |
The errors in Travis are the same "No output has been received in the last 10 minutes..." |
@chriscool this LGTM, those travis failures are strange, but not your fault. |
rerunning--- We are using the KVM setup-- which is faster-- though is still beta. |
we should either set the go test timeout to 9 minutes, or the travis test timeout to 11 minutes, its hard to tell whether things broke because travis, or if things broke because one of our tests hung |
@whyrusleeping sgtm |
There are still the same kind of failures in some go tests:
and
|
This should fix issue #1141 (ipfs cat "multihash too short" error when using stdin).