Skip to content

Commit

Permalink
squash: address test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed Sep 20, 2024
1 parent f74ab63 commit c7ed46d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tmt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2110,13 +2110,14 @@ def show(self) -> None:
self._show_additional_keys()

# Show fmf id of the remote plan in verbose mode
if (self._original_plan or self._original_plan_fmf_id) and self.verbosity_level:
if (self._original_plan or self._imported_plan_fmf_id) and self.verbosity_level:
# Pick fmf id from the original plan by default, use the
# current plan in shallow mode when no plans are fetched.

if self._original_plan is not None:
fmf_id = self._original_plan._original_plan_fmf_id
fmf_id = self._original_plan._imported_plan_fmf_id
else:
fmf_id = self._original_plan_fmf_id
fmf_id = self._imported_plan_fmf_id

echo(tmt.utils.format('import', '', key_color='blue'))
assert fmf_id is not None # narrow type
Expand Down Expand Up @@ -2539,6 +2540,7 @@ def import_plan(self) -> Optional['Plan']:
# Create the plan object, save links between both plans
self._imported_plan = Plan(node=node, run=self.my_run, logger=self._logger)
self._imported_plan._original_plan = self
self._imported_plan._original_plan_fmf_id = self.fmf_id

with self.environment.as_environ():
expand_node_data(node.data, self._fmf_context)
Expand Down

0 comments on commit c7ed46d

Please sign in to comment.