-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwanted login in finish step when login -t
is used
#1918
Comments
Hi @lukaszachy, would you please help to paste the |
E.g.
And when you do
|
There are two entrances that invoke # https://github.com/teemtee/tmt/blob/main/tmt/steps/__init__.py#L1171
1171 class Login(Action):
1172 """ Log into the guest """
....<snip>...
1249 def go(self) -> None:
1250 """ Login to the guest(s) """
1251
1252 if self._enabled_by_results(self.parent.plan.execute.results()):
1253 self._login()
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
....<snip>...
1295 def after_test(
1296 self,
1297 result: 'tmt.base.Result',
1298 cwd: Optional[Path] = None,
1299 env: Optional[tmt.utils.EnvironmentType] = None) -> None:
1300 """ Check and login after test execution """
1301 if self._enabled_by_results([result]):
1302 self._login(cwd, env)
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To fix it,
|
The help says:
-t. --test Log into the guest after each executed test in the execute phase.
I have plan with one test, run
tmt run login -t
however there is an additional login in the finish step.The text was updated successfully, but these errors were encountered: