aboutsummaryrefslogtreecommitdiff
path: root/venv
diff options
context:
space:
mode:
authorAviv Keshet <akeshet@chromium.org>2019-04-12 18:27:16 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-04-15 09:50:51 -0700
commit32d1748a7b36968bcc49ffde6037ab0a6a5607b2 (patch)
tree9a08f68882acc98c9c4b8bca0ba491448d333fc9 /venv
parenta93f0813cae8b8c611bd181be0e861ef90d6b76d (diff)
downloadautotest-32d1748a7b36968bcc49ffde6037ab0a6a5607b2.tar.gz
autotest: skylab_suite: don't try to getch failures if there are None
BUG=chromium:951646 TEST=None Change-Id: Ibacd048e38469619a78323e177c634430b8335e9 Reviewed-on: https://chromium-review.googlesource.com/1566796 Commit-Ready: Aviv Keshet <akeshet@chromium.org> Tested-by: Aviv Keshet <akeshet@chromium.org> Reviewed-by: Xixuan Wu <xixuan@chromium.org>
Diffstat (limited to 'venv')
-rw-r--r--venv/skylab_suite/suite_tracking.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/venv/skylab_suite/suite_tracking.py b/venv/skylab_suite/suite_tracking.py
index c906cf8098..c6258ee91e 100644
--- a/venv/skylab_suite/suite_tracking.py
+++ b/venv/skylab_suite/suite_tracking.py
@@ -85,6 +85,9 @@ def _get_failed_test_views_from_tko(task_ids):
@param task_ids: list of Swarming request IDs.
@return {task_id: [tko_test_views.Row()]}
"""
+ if not task_ids:
+ return {}
+
conn = _new_tko_connection()
if conn is None:
return {}