File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
tests/core/pyspec/eth2spec/gen_helpers/gen_base Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,23 @@ def debug_print(msg):
130130 # Gracefully handle Ctrl+C
131131 install_sigint_handler (console )
132132
133+ # Deduplicate test cases based on identifier
134+ input_test_cases_list = list (input_test_cases )
135+ seen_identifiers = {}
136+ deduplicated_test_cases = []
137+ for test_case in input_test_cases_list :
138+ identifier = test_case .get_identifier ()
139+ if identifier not in seen_identifiers :
140+ seen_identifiers [identifier ] = True
141+ deduplicated_test_cases .append (test_case )
142+
143+ debug_print (f"Total test cases before deduplication: { len (input_test_cases_list )} " )
144+ debug_print (f"Total test cases after deduplication: { len (deduplicated_test_cases )} " )
145+ debug_print (f"Duplicates removed: { len (input_test_cases_list ) - len (deduplicated_test_cases )} " )
146+
133147 total_found = 0
134148 selected_test_cases = []
135- for test_case in input_test_cases :
149+ for test_case in deduplicated_test_cases :
136150 total_found += 1
137151 # Check if the test case should be filtered out
138152 if len (args .runners ) != 0 and test_case .runner_name not in args .runners :
You can’t perform that action at this time.
0 commit comments