LLVM tools: Add extra return value for no tryjobs
BUG=None
TEST=Function returned correctly
Change-Id: I568be1b17cc2fda982d4a4fa0d0c15d08475ea45
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1775399
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Salud Lemus <saludlemus@google.com>
diff --git a/llvm_tools/llvm_bisection.py b/llvm_tools/llvm_bisection.py
index 361b918..da26a54 100755
--- a/llvm_tools/llvm_bisection.py
+++ b/llvm_tools/llvm_bisection.py
@@ -165,7 +165,7 @@
"""
if not tryjobs:
- return start, end, []
+ return start, end, {}, {}
# Verify that each tryjob has a value for the 'status' key.
for cur_tryjob_dict in tryjobs:
@@ -333,7 +333,8 @@
_ValidateStartAndEndAgainstJSONStartAndEnd(
start, end, bisect_contents['start'], bisect_contents['end'])
-
+ print(start, end)
+ print(bisect_contents['jobs'])
# Pending and skipped revisions are between 'start_revision' and
# 'end_revision'.
start_revision, end_revision, pending_revisions, skip_revisions = \