Skip to content

Commit

Permalink
Better text
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Mar 15, 2024
1 parent 81d8a8b commit f7a7aad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions checkbox-ng/plainbox/impl/session/remote_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,16 +769,15 @@ def resume_by_id(self, session_id=None, overwrite_result_dict={}):
if "noreturn" in the_job.get_flag_set():
result_dict["outcome"] = IJobResult.OUTCOME_PASS
result_dict["comments"] = (
"Job crashed the machine or the Checkbox agent, "
"automatically marking it as passed after resuming "
"the session because it has the noreturn flag"
"Job rebooted the machine or the Checkbox agent. "
"Resuming the session and marking it as passed "
"because the job has the `noreturn` flag"
)
else:
result_dict["outcome"] = IJobResult.OUTCOME_CRASH
result_dict["comments"] = (
"Job crashed the machine or the Checkbox agent, "
"automatically marking it as crashed after resuming "
"the session"
"Job rebooted the machine or the Checkbox agent. "
"Resuming the session and marking it as crashed."
)

result_dict.update(overwrite_result_dict)
Expand Down
11 changes: 5 additions & 6 deletions checkbox-ng/plainbox/impl/session/test_remote_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ def test_resume_by_id_with_result_no_file_noreturn(
{
"outcome": IJobResult.OUTCOME_PASS,
"comments": (
"Job crashed the machine or the Checkbox agent, "
"automatically marking it as passed after resuming "
"the session because it has the noreturn flag"
"Job rebooted the machine or the Checkbox agent. "
"Resuming the session and marking it as passed "
"because the job has the `noreturn` flag"
),
}
)
Expand Down Expand Up @@ -286,9 +286,8 @@ def test_resume_by_id_with_result_no_file_normal(self, mock_load_configs):
{
"outcome": IJobResult.OUTCOME_CRASH,
"comments": (
"Job crashed the machine or the Checkbox agent, "
"automatically marking it as crashed after resuming "
"the session"
"Job rebooted the machine or the Checkbox agent. "
"Resuming the session and marking it as crashed."
),
}
)
Expand Down

0 comments on commit f7a7aad

Please sign in to comment.