Merge pull request #478 from vmware-tanzu/prepare-script-macos-big-sur

Fix hack/prepare-for-integration-tests.sh for MacOS Big Sur
This commit is contained in:
Matt Moyer 2021-03-08 10:02:52 -06:00 committed by GitHub
commit eac108aee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ fi
test_username="test-username" test_username="test-username"
test_groups="test-group-0,test-group-1" test_groups="test-group-0,test-group-1"
set +o pipefail set +o pipefail
test_password="$(cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-z0-9' | fold -w 32 | head -n 1)" test_password="$(cat /dev/urandom | env LC_ALL=C tr -dc 'a-z0-9' | fold -w 32 | head -n 1)"
set -o pipefail set -o pipefail
if [[ ${#test_password} -ne 32 ]]; then if [[ ${#test_password} -ne 32 ]]; then
log_error "Could not create test user's random password" log_error "Could not create test user's random password"