diff options
author | 2017-10-02 17:59:58 +0200 | |
---|---|---|
committer | 2017-10-02 18:00:18 +0200 | |
commit | 63a7bea8f075564fbc060dc410fd97c4b09f2615 (patch) | |
tree | 5bc2b14212c3ee2b28458714874ef54166668ce0 /tools/internal_ci/helper_scripts/prepare_build_macos_rc | |
parent | 9c15cb9329a8e465529a8a8759b808b15e3df97e (diff) |
synchronize clock on macos
Diffstat (limited to 'tools/internal_ci/helper_scripts/prepare_build_macos_rc')
-rw-r--r-- | tools/internal_ci/helper_scripts/prepare_build_macos_rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc index bec529f85e..1c10d42d49 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc @@ -27,6 +27,14 @@ ulimit -n 10000 # show current limits ulimit -a +# synchronize the clock +date +sudo systemsetup -setusingnetworktime off +sudo systemsetup -setnetworktimeserver "$( ipconfig getoption en0 server_identifier )" +sudo systemsetup -settimezone America/Los_Angeles +sudo systemsetup -setusingnetworktime on +date + # Add GCP credentials for BQ access pip install google-api-python-client --user python export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/GrpcTesting-d0eeee2db331.json |