aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/internal_ci/helper_scripts/prepare_build_macos_rc
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2017-10-05 15:43:59 +0200
committerGravatar GitHub <noreply@github.com>2017-10-05 15:43:59 +0200
commitb756bc0a32d256cadbd398e52488589b2bacc6f3 (patch)
tree51dc202338932a405663df04c6aeddc5e4a2ba4c /tools/internal_ci/helper_scripts/prepare_build_macos_rc
parente2b4e49f39f657547b0a658637eb0c56b37dfbce (diff)
parent63a7bea8f075564fbc060dc410fd97c4b09f2615 (diff)
Merge pull request #12784 from jtattermusch/synchronize_macos_clock
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_rc8
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 5a5898f94c..dd98a12c65 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