Skip to content

Commit

Permalink
Fix tmt-try not sourcing plan-env-file after steps
Browse files Browse the repository at this point in the history
  • Loading branch information
xduda committed Oct 24, 2024
1 parent 6df1338 commit 1b79501
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tmt/trying.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,15 @@ def action_start_test(self, plan: Plan) -> None:

plan.discover.go()
plan.provision.go()
plan.prepare.go()
plan.execute.go()
self.action_prepare(plan)
self.action_execute(plan)

def action_start_login(self, plan: Plan) -> None:
""" Start with login """
self.action_start(plan)

plan.provision.go()
plan.prepare.go()
self.action_prepare(plan)
assert plan.login is not None # Narrow type
plan.login.go(force=True)

Expand All @@ -314,7 +314,7 @@ def action_start_ask(self, plan: Plan) -> None:
def action_test(self, plan: Plan) -> None:
""" Test again """
plan.discover.go(force=True)
plan.execute.go(force=True)
self.action_execute(plan)

def action_login(self, plan: Plan) -> None:
""" Log into the guest """
Expand Down Expand Up @@ -373,10 +373,12 @@ def action_discover(self, plan: Plan) -> None:
def action_prepare(self, plan: Plan) -> None:
""" Prepare the guest """
plan.prepare.go(force=True)
plan._source_plan_environment_file()

def action_execute(self, plan: Plan) -> None:
""" Execute tests """
plan.execute.go(force=True)
plan._source_plan_environment_file()

def action_report(self, plan: Plan) -> None:
""" Report results """
Expand Down

0 comments on commit 1b79501

Please sign in to comment.