summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2012-05-09 14:05:20 -0400
committerJosh Boyer <jwboyer@redhat.com>2012-05-09 14:05:20 -0400
commit6df633cac1fcb988697baffa4caa792606990c2e (patch)
tree1ac7f55e7929f7c58578b7d0e27316bbd10d2f3c
parent2dd6a4e34b7b623d539140e87658cbe020203288 (diff)
downloadkoji-bisect-6df633cac1fcb988697baffa4caa792606990c2e.zip
koji-bisect-6df633cac1fcb988697baffa4caa792606990c2e.tar.gz
koji-bisect-6df633cac1fcb988697baffa4caa792606990c2e.tar.xz
Figure out when we're "done"
Check to see if the user has basically exhausted the list of kernels. Tell them which the fist bad one is.
-rwxr-xr-xkoji-bisect.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/koji-bisect.py b/koji-bisect.py
index 0d43888..2cb1402 100755
--- a/koji-bisect.py
+++ b/koji-bisect.py
@@ -377,7 +377,13 @@ if __name__ == "__main__":
builds_left = build_list[bad:good+1]
bisect_data['builds_left'] = builds_left
- bisect_data['current'] = builds_left[len(builds_left)/2]
+ current = builds_left[len(builds_left)/2]
+ if current == bisect_data['current']:
+ print "Build %s is the first bad build" % bisect_data['bad']
+ bisect_save(bisect_data)
+ sys.exit(0)
+ else:
+ bisect_data['current'] = current
os.makedirs('downloads/%s' % bisect_data['current'])
download_build(session, bisect_data['current'], 'x86_64')