Skip to content

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/clusterfuzz/_internal/base/bisection.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _make_bisection_request(pubsub_topic, testcase, target, bisect_type):
135135
new_commit)
136136

137137
repo_url = data_handler.get_main_repo(testcase.job_type) or ''
138-
reproducer = blobs.read_key(testcase.minimized_keys or testcase.fuzzed_keys)
138+
reproducer = blobs.read_key(_get_keys(testcase))
139139
pubsub_client = pubsub.PubSubClient()
140140
pubsub_client.publish(pubsub_topic, [
141141
pubsub.Message(
@@ -196,3 +196,9 @@ def _get_commits(commit_range, job_type):
196196
old_commit = ''
197197

198198
return old_commit, new_commit
199+
200+
201+
def _get_keys(testcase):
202+
if testcase.minimized_keys and testcase.minimized_keys != 'NA':
203+
return testcase.minimized_keys
204+
return testcase.fuzzed_keys

0 commit comments

Comments
 (0)