@@ -148,7 +148,7 @@ def get_test_list(args: dict, tests_yaml: List[dict]):
148
148
rmtree (args .logs_path )
149
149
os .makedirs (args .logs_path )
150
150
# Set up Logging for test-runner context
151
- unique_identifier = args . logs_path . replace ( "/" , "-" )
151
+ test_group = os . path . dirname ( args . file_path )
152
152
logging .basicConfig (
153
153
level = logging .INFO ,
154
154
format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" ,
@@ -193,22 +193,20 @@ def get_test_list(args: dict, tests_yaml: List[dict]):
193
193
logging .error (err )
194
194
summary .append ([idx + 1 , test .name , "FAIL" ])
195
195
json_summary .append (
196
- {"Group" : unique_identifier , "Test" : test .name , "Status" : "FAIL" }
196
+ {"Group" : test_group , "Test" : test .name , "Status" : "FAIL" }
197
197
)
198
198
ERROR = True
199
199
continue
200
200
except KeyboardInterrupt :
201
201
summary .append ([idx + 1 , test .name , "FAIL" ])
202
202
json_summary .append (
203
- {"Group" : unique_identifier , "Test" : test .name , "Status" : "FAIL" }
203
+ {"Group" : test_group , "Test" : test .name , "Status" : "FAIL" }
204
204
)
205
205
ERROR = True
206
206
break
207
207
summary .append ([idx + 1 , test .name , "PASS" ])
208
- json_summary .append (
209
- {"Group" : unique_identifier , "Test" : test .name , "Status" : "PASS" }
210
- )
211
- json_summary_path = f"test-runner-summary-{ unique_identifier } .json"
208
+ json_summary .append ({"Group" : test_group , "Test" : test .name , "Status" : "PASS" })
209
+ json_summary_path = f"test-runner-summary-{ test_group } .json"
212
210
213
211
with open (json_summary_path , "w" , encoding = "utf-8" ) as file :
214
212
json .dump (json_summary , file , indent = 4 )
0 commit comments