-
-
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
test: change time-out script to one from coreutils #3152
Conversation
|
||
# Execute a command with a timeout | ||
|
||
# License: LGPLv2 |
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.
Cant use LGPLv2
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.
As far as I know we can't link to LGPL, we can use it as a script.
Sharness is on GPLv2 and we are using it.
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.
@Kubuxu we are not embedding sharness in our repo, which we cannot do. We are downloading it to develop with, which is fine with licensing. check how the Makefile does it.
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.
As far as I know we can't link to LGPL, we can use it as a script.
Can we embed it in our source? i don't think we can. Point me to clause where you think it's fine so i can verify? (would be nice if so)
maybe point me to it? |
The previous script: http://git.savannah.gnu.org/cgit/bash.git/tree/examples/scripts/timeout3?h=bash-4.0 EDIT: changed link |
Fun history: http://git.savannah.gnu.org/cgit/bash.git/log/examples/scripts/timeout3?h=bash-4.3-testing yeah idk, that's sketchy. wish licensing wasnt an issue, but we have to be super careful about this. |
This is fun, this code is all over the place: https://github.com/search?p=1&q=Dmitry+V+Golovashkin&ref=opensearch&type=Code |
TL;DR: @golovashkin could you please license your
|
@Kubuxu could we not just do: |
@@ -8,17 +8,17 @@ test_description="Tests for various fixed issues and regressions." | |||
|
|||
test_expect_success "ipfs init with occupied input works - #2748" ' | |||
export IPFS_PATH="ipfs_path" | |||
echo "" | time-out ipfs init && | |||
echo "" | time-out 10 ipfs init && | |||
rm -rf ipfs_path | |||
' | |||
test_init_ipfs | |||
|
|||
test_expect_success "ipfs cat --help succeeds with no input" ' |
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.
the text here is not right, it should be "ipfs cat --help succeeds even if stdin remains open"
correct me if i'm wrong, but afaiu (from chatting with @whyrusleeping) this is the case.
@Kubuxu alright, lets take the easy way out. Write a simple go program to do this. |
c047082
to
ab4be10
Compare
I changed the script to self written go program. Let's wait for the tests to run. |
ab4be10
to
f025327
Compare
Fixed Makefile. |
Oh, the 0.4.3-rcX is at Go 1.6. |
I created: #3163 which should resolve the problem with Travis and Circle if we want update the RC to Go 1.7. I think that @whyrusleeping was planning that. |
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
f025327
to
f59751d
Compare
Rebased. |
LGTM, thanks @Kubuxu! |
Folks, you are welcomed to use the script in any way or shape or form, however you like it. My SAS email is no longer valid, please use Thank you!! |
Thanks very much @golovashkin -- released it that way at https://github.com/jbenet/bash-timeout3 for posterity. |
I had a problem with finding definitive license statement of the previous
script. It was from examples in bash source tree but its licensing was a
bit unclear.
License: MIT
Signed-off-by: Jakub Sztandera kubuxu@protonmail.ch