• Kubernetes Submit Queue's avatar
    Merge pull request #61393 from totherme/fix-test-cmd-on-osx · 9f71d7f8
    Kubernetes Submit Queue authored
    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
    9f71d7f8
Name
Last commit
Last update
..
helpers Loading commit data...
BUILD Loading commit data...
Makefile.manifest Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
cross.sh Loading commit data...
make-help.sh Loading commit data...
test-cmd-util.sh Loading commit data...
test-cmd.sh Loading commit data...
test-e2e-node.sh Loading commit data...
test-integration.sh Loading commit data...
test-kubeadm-cmd.sh Loading commit data...
test.sh Loading commit data...
update.sh Loading commit data...
verify.sh Loading commit data...
vet.sh Loading commit data...