Skip to content

Commit

Permalink
Fix dry mode handling when running a remote plan
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Apr 5, 2023
1 parent f93cf20 commit 0e0d10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ def import_plan(self) -> Optional['Plan']:
self.debug(f"Import remote plan '{plan_id.name}' from '{plan_id.url}'.", level=3)

# Clone the whole git repository if executing tests (run is attached)
if self.my_run and not self.my_run.opt('dry'):
if self.my_run and not self.my_run.opt('dry') and not self.opt('dry'):
assert self.parent is not None # narrow type
assert self.parent.workdir is not None # narrow type
destination = self.parent.workdir / "import" / self.name.lstrip("/")
Expand Down

0 comments on commit 0e0d10e

Please sign in to comment.