-
-
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 repeat in 10 sec: increase check frequency tenfold #1326
Conversation
Test repeat in 10 sec: increase check frequency tenfold
@rht thanks! |
Ok will at least replace with The tests in sharness are meant to be passed by the node & python implementation, right? |
I wonder if there is a checker for sh for POSIX compliance. |
In Git test_seq uses Perl but we don't want to depend on Perl I think. |
e.g. debian posh |
Unfortunately it looks like http://www.shellcheck.net/ doesn't check for POSIX compliance. |
Also shellcheck is less portable than perl (no binary build in https://github.com/koalaman/shellcheck). I think any of posh, dash, bsh is sufficient to check for POSIX compliance. |
Let's do this. The fractional seconds add up. I'd like to have our tests wait as little time as we can make them. |
What about And what about reusing the test for other lang implementation? |
Where does sharness assumes that perl exists? Greping for perl, I found only:
which is not part of sharness. |
Ah right, it is git test that uses perl, while sharness is pure shell. Hence any util that is not fully portable is to be written in go? |
@rht yeah we often write some small utils in go, when we need them and there is no easy way to have them in POSIX shell. |
See PR #1329 for test_seq in POSIX shell using expr. |
About sleeping for some milliseconds there is now, shamelessly stolen from go-random: |
By the way after sleeping a bit on it myself :-) I think I will rename it soon like "go-millisleep". |
haha, i like it. (maybe can use seconds but allow fractions. (i.e. parse it as a time.Duration)) |
Which one is usually preferable: |
I'd say:
But this may clash with other tools so another name is ok. Don't use "go sleep" as that should only be a tool part of the go distribution |
Like this a lot. I opened PR chriscool/go-sleep#1 to use |
|
I merged @cryptix's PR so now it is |
I renamed it |
No description provided.