mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
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:
@@ -234,12 +234,11 @@ class AssignTest(object):
|
|||||||
|
|
||||||
:return: filter for search test cases
|
:return: filter for search test cases
|
||||||
"""
|
"""
|
||||||
bot_filter = os.getenv("BOT_CASE_FILTER")
|
res = dict()
|
||||||
|
for bot_filter in [os.getenv('BOT_CASE_FILTER'), os.getenv('BOT_TARGET_FILTER')]:
|
||||||
if bot_filter:
|
if bot_filter:
|
||||||
bot_filter = json.loads(bot_filter)
|
res.update(json.loads(bot_filter))
|
||||||
else:
|
return res
|
||||||
bot_filter = dict()
|
|
||||||
return bot_filter
|
|
||||||
|
|
||||||
def _apply_bot_test_count(self):
|
def _apply_bot_test_count(self):
|
||||||
"""
|
"""
|
||||||
|
@@ -79,6 +79,8 @@ class Search(object):
|
|||||||
"""
|
"""
|
||||||
replicate_config = []
|
replicate_config = []
|
||||||
for key in case.case_info:
|
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)):
|
if isinstance(case.case_info[key], (list, tuple)):
|
||||||
replicate_config.append(key)
|
replicate_config.append(key)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user