Files
kubernetes/hack
Kubernetes Submit Queue 9f71d7f8af Merge pull request #61393 from totherme/fix-test-cmd-on-osx
Automatic merge from submit-queue (batch tested with PRs 61453, 61393, 61379, 61373, 61494). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make `test-cmd` work with OS-X tooling

OS-X thips with the BSD versions of `date` and `grep`. Those don't have
certain features the script relies on:
- BSD date does not support nanoseconds (`%N`)
- BSD grep does not support perl RegEx (`-P`)

As we use `bash` specifically in the hashbang anyway it is probably fine
to rely on the `$RANDOM` bashism here.

**What this PR does / why we need it**:

Currently `make test-cmd` doesn't work on OSX. This PR makes `make test-cmd` work on OSX.

**Release note**:
```release-note
`make test-cmd` now works on OSX.
```

cc: @apelisse
2018-03-22 06:20:19 -07:00
..
2018-02-16 13:43:01 -08:00
2017-09-19 18:10:21 +05:30
2018-02-01 07:23:50 -08:00
2018-01-30 09:29:51 -08:00
2018-02-26 17:04:32 -08:00
2017-08-27 22:20:04 -04:00
2018-01-22 15:11:16 -08:00
2018-01-09 23:09:08 -08:00
2018-01-09 23:09:08 -08:00