Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 8716141

Browse files
author
Jon Wayne Parrott
authored
Update gcloud in system tests (#123)
1 parent 2d0549a commit 8716141

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

system_tests/nox.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ def install_cloud_sdk(session):
8686
# This tells gcloud which Python interpreter to use (always use 2.7)
8787
session.env[CLOUD_SDK_PYTHON_ENV] = CLOUD_SDK_PYTHON
8888

89-
# If gcloud cli executable already exists, we don't need to do anything
90-
# else.
91-
# Note that because of this we do not attempt to update the sdk -
92-
# if the CLOUD_SDK_ROOT is cached, it will need to be periodically cleared.
89+
# If gcloud cli executable already exists, just update it.
9390
if py.path.local(GCLOUD).exists():
91+
session.run(GCLOUD, 'components', 'update', '-q')
9492
return
9593

9694
tar_path = CLOUD_SDK_ROOT.join(CLOUD_SDK_DIST_FILENAME)

0 commit comments

Comments
 (0)