@@ -130,24 +130,24 @@ def load_and_override_cases(load_paths, args):
130130
131131 for f_path in files_to_read :
132132 try :
133- with open (f_path , 'r' , encoding = ' utf-8' ) as f :
133+ with open (f_path , "r" , encoding = " utf-8" ) as f :
134134 data = json .load (f )
135-
135+
136136 # Unify as a list to handle both single dict and list of dicts
137137 current_batch = data if isinstance (data , list ) else [data ]
138-
138+
139139 valid_batch = []
140140 for item in current_batch :
141141 # We only require the 'operator' field to identify the test case.
142142 if isinstance (item , dict ) and "operator" in item :
143143 valid_batch .append (item )
144144 else :
145145 skipped_count += 1
146-
146+
147147 if valid_batch :
148148 cases .extend (valid_batch )
149149 loaded_count += 1
150-
150+
151151 except Exception as e :
152152 # Log warning only; do not crash the program on bad files to ensure flow continuity.
153153 print (f"❌ Error loading { f_path .name } : { e } " )
@@ -173,7 +173,7 @@ def load_and_override_cases(load_paths, args):
173173 cli_active_devices .append (device_name )
174174
175175 print (f"\n [Config Processing]" )
176-
176+
177177 for case in cases :
178178 if "args" not in case or case ["args" ] is None :
179179 case ["args" ] = {}
@@ -283,9 +283,11 @@ def main():
283283 print (f"Benchmark mode: { args .bench .upper ()} timing" )
284284
285285 # 3. Initialize and Execute
286- test_manager = TestManager (ops_dir = args .ops_dir , verbose = verbose , bench_mode = bench )
286+ test_manager = TestManager (
287+ ops_dir = args .ops_dir , verbose = verbose , bench_mode = bench
288+ )
287289
288- success = test_manager .test (json_cases_list = json_cases )
290+ success , _ = test_manager .test (json_cases_list = json_cases )
289291
290292 # ==========================================================================
291293 # Branch 2: Local Scan Mode
@@ -330,7 +332,7 @@ def main():
330332 ops_dir = args .ops_dir , verbose = args .verbose , bench_mode = args .bench
331333 )
332334
333- success = test_manager .test (
335+ success , _ = test_manager .test (
334336 target_ops = target_ops , global_exec_args = global_exec_args
335337 )
336338 sys .exit (0 if success else 1 )
0 commit comments