@@ -193,10 +193,9 @@ def set_link(self, link) -> "Result":
193193 self .dump ()
194194 return self
195195
196- def add_job_summary_to_info (
197- self , with_local_run_command = False , with_test_in_run_command = False
198- ):
196+ def _add_job_summary_to_info (self ):
199197 subresult_with_tests = self
198+ with_test_in_run_command = False
200199
201200 # Use a specific sub-result if configured
202201 job_config = _Environment .get ().JOB_CONFIG or {}
@@ -205,6 +204,7 @@ def add_job_summary_to_info(
205204 for r in self .results :
206205 if r .name == result_name_for_cidb :
207206 subresult_with_tests = r
207+ with_test_in_run_command = True
208208 if subresult_with_tests .info :
209209 self .set_info (subresult_with_tests .info )
210210 break
@@ -218,8 +218,8 @@ def add_job_summary_to_info(
218218
219219 if failed :
220220 if len (failed ) < 10 :
221- failed_tcs = "\n " .join (failed )
222- self .set_info (f"Failed:\n { failed_tcs } " )
221+ failed_tcs = ", " .join (failed )
222+ self .set_info (f"Failed: { failed_tcs } " )
223223
224224 # Suggest local command to rerun
225225 if with_local_run_command :
@@ -454,7 +454,9 @@ def from_commands_run(
454454 files = [log_file ] if with_log else None ,
455455 )
456456
457- def complete_job (self ):
457+ def complete_job (self , with_job_summary_in_info = True ):
458+ if with_job_summary_in_info :
459+ self ._add_job_summary_to_info ()
458460 self .dump ()
459461 if not self .is_ok ():
460462 print ("ERROR: Job Failed" )
0 commit comments