@@ -90,7 +90,12 @@ def create_test_json(test, log_path):
90
90
config_name = test ["config" ]
91
91
elif "config_name" in test :
92
92
config_name = test ["config_name" ]
93
- return {
93
+
94
+ runtime = None
95
+ if "misc" in test .keys ():
96
+ runtime = test ["misc" ].get ("runtime" )
97
+
98
+ json_output = {
94
99
"test_path" : test ["path" ],
95
100
"hardware" : test ["environment_misc" ]["platform" ],
96
101
"compatibles" : test .get ("environment_compatible" , []),
@@ -103,6 +108,11 @@ def create_test_json(test, log_path):
103
108
"dashboard" : f"https://dashboard.kernelci.org/build/{ test ['id' ]} " ,
104
109
}
105
110
111
+ if runtime :
112
+ json_output ["runtime" ] = runtime
113
+
114
+ return json_output
115
+
106
116
107
117
def cmd_summary (data , use_json ):
108
118
logging .info ("Generating results summary" )
@@ -427,6 +437,13 @@ def print_test(test, log_path):
427
437
428
438
kci_msg (f" log: { log_path } " )
429
439
kci_msg (f" start time: { test ['start_time' ]} " )
440
+
441
+ if "misc" in test .keys ():
442
+ runtime = test ["misc" ].get ("runtime" )
443
+ kci_msg_nonl (" runtime: " )
444
+ kci_msg_cyan (runtime , nl = False )
445
+ kci_msg ("" )
446
+
430
447
kci_msg (f" id: { test ['id' ]} " )
431
448
kci_msg (f" dashboard: https://dashboard.kernelci.org/test/{ test ['id' ]} " )
432
449
kci_msg ("" )
0 commit comments