From 8716141ecd9ac2d9ef2aeb73bbf4cae0236d16de Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Wed, 1 Mar 2017 09:28:15 -0800 Subject: [PATCH] Update gcloud in system tests (#123) --- system_tests/nox.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system_tests/nox.py b/system_tests/nox.py index 8179ca11e..0d1116d66 100644 --- a/system_tests/nox.py +++ b/system_tests/nox.py @@ -86,11 +86,9 @@ def install_cloud_sdk(session): # This tells gcloud which Python interpreter to use (always use 2.7) session.env[CLOUD_SDK_PYTHON_ENV] = CLOUD_SDK_PYTHON - # If gcloud cli executable already exists, we don't need to do anything - # else. - # Note that because of this we do not attempt to update the sdk - - # if the CLOUD_SDK_ROOT is cached, it will need to be periodically cleared. + # If gcloud cli executable already exists, just update it. if py.path.local(GCLOUD).exists(): + session.run(GCLOUD, 'components', 'update', '-q') return tar_path = CLOUD_SDK_ROOT.join(CLOUD_SDK_DIST_FILENAME)