commit | 532d9b7851f87e052279187b7b38074a169c0737 | [log] [tgz] |
---|---|---|
author | Ravi Mistry <rmistry@google.com> | Fri Mar 08 10:45:59 2019 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Mar 08 16:35:16 2019 +0000 |
tree | 42b3457bdb02728ff82ffcccc1c7dab8503cfe65 | |
parent | 2de3433518bf32090be1831390e63703dd8654fa [diff] |
[CT] Add retries to gclient commands Bug: skia:8835 Change-Id: I8201bf436e7b0fb9d35ef83c6f1c9047b49f5b97 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/199242 Reviewed-by: Ben Wagner <benjaminwagner@google.com> Commit-Queue: Ravi Mistry <rmistry@google.com>
diff --git a/ct/py/gclient_utils.py b/ct/py/gclient_utils.py index 58c325d..bc6080a 100644 --- a/ct/py/gclient_utils.py +++ b/ct/py/gclient_utils.py
@@ -19,8 +19,8 @@ def _RunCmd(cmd): - """ Run a "gclient ..." command. """ - return shell_utils.run([GCLIENT_PY] + cmd) + """ Run a "gclient ..." command with retries. """ + return shell_utils.run_retry([GCLIENT_PY] + cmd, attempts=3) def GClient():