Add BOT_TARGET_FILTER to _apply_bot_filter

fix the bug that will calculate twice if ci_target is a list.
This commit is contained in:
Fu Hanxi
2020-04-09 18:19:03 +08:00
parent bc026133c5
commit 38c288bc0e
2 changed files with 7 additions and 6 deletions

View File

@@ -79,6 +79,8 @@ class Search(object):
"""
replicate_config = []
for key in case.case_info:
if key == 'ci_target': # ci_target is used to filter target, should not be duplicated.
continue
if isinstance(case.case_info[key], (list, tuple)):
replicate_config.append(key)