Skip to content

Commit

Permalink
Copy launch description to suite description (#2992)
Browse files Browse the repository at this point in the history
Co-authored-by: Petr Šplíchal <[email protected]>
  • Loading branch information
kkaarreell and psss authored Jun 12, 2024
1 parent e1e6898 commit 6eade22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ The :ref:`/spec/tests/duration` now supports multiplication.
Added option ``--failed-only`` to the test attributes,
enabling rerunning failed tests from previous runs.

The :ref:`plugins/report/reportportal` plugin copies
launch description also into the suite description when the
``--suite-per-plan`` option is used.

The :ref:`virtual<plugins/provision/virtual.testcloud>` provision
plugin gains support for adding multiple disks to guests, by adding
the corresponding ``disk[N].size``
Expand Down
14 changes: 6 additions & 8 deletions tmt/steps/report/reportportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,19 +380,17 @@ def go(self) -> None:
launch_attributes = self.construct_launch_attributes(suite_per_plan, attributes)

if suite_per_plan:
launch_description = self.data.launch_description
suite_description = self.step.plan.summary or ""
if (self.data.upload_to_launch and suite_per_plan):
suite_description = self.append_description(suite_description)
launch_description = self.data.launch_description or ""
suite_description = self.append_description(self.step.plan.summary or "")
else:
launch_description = self.step.plan.summary or ""
launch_description = self.append_description(launch_description)
suite_description = ""

# Check whether artifacts URL has been provided
if not launch_description:
launch_description = self.data.artifacts_url
elif self.data.artifacts_url:
launch_description = f"{launch_description}, {self.data.artifacts_url}"
if self.data.artifacts_url:
launch_description += f"<br>{self.data.artifacts_url}"
suite_description += f"<br>{self.data.artifacts_url}"

# Communication with RP instance
with tmt.utils.retry_session() as session:
Expand Down

0 comments on commit 6eade22

Please sign in to comment.