-
Notifications
You must be signed in to change notification settings - Fork 343
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
ERROR in tearDown overwrites the test status #5801
Comments
9 tasks
richtja
added a commit
to richtja/avocado
that referenced
this issue
Nov 16, 2023
When avocado-instrumented test is interrupted, the avocado runner will call a tearDown method to clean the test environment. If some error is raised during the tearDown phase, the `INTERRUPTED` status is overwritten by this error. This is not desired behavior, because the reason for the error was interruption of the test. This fix keeps logging of the tearDown error without change of the `INTERRUPTED` status. Reference: avocado-framework#5801 Signed-off-by: Jan Richter <jarichte@redhat.com>
richtja
added a commit
to richtja/avocado
that referenced
this issue
Nov 20, 2023
When avocado-instrumented test is interrupted, the avocado runner will call a tearDown method to clean the test environment. If some error is raised during the tearDown phase, the `INTERRUPTED` status is overwritten by this error. This is not desired behavior, because the reason for the error was interruption of the test. This fix keeps logging of the tearDown error without change of the `INTERRUPTED` status. Reference: avocado-framework#5801 Signed-off-by: Jan Richter <jarichte@redhat.com>
richtja
added a commit
to richtja/avocado
that referenced
this issue
Nov 24, 2023
When avocado-instrumented test is interrupted, the avocado runner will call a tearDown method to clean the test environment. If some error is raised during the tearDown phase, the `INTERRUPTED` status is overwritten by this error. This is not desired behavior, because the reason for the error was interruption of the test. This fix keeps logging of the tearDown error without change of the `INTERRUPTED` status. Reference: avocado-framework#5801 Signed-off-by: Jan Richter <jarichte@redhat.com>
richtja
added a commit
to richtja/avocado
that referenced
this issue
Nov 27, 2023
When avocado-instrumented test is interrupted, the avocado runner will call a tearDown method to clean the test environment. If some error is raised during the tearDown phase, the `INTERRUPTED` status is overwritten by this error. This is not desired behavior, because the reason for the error was interruption of the test. This fix keeps logging of the tearDown error without change of the `INTERRUPTED` status. Reference: avocado-framework#5801 Signed-off-by: Jan Richter <jarichte@redhat.com>
github-project-automation
bot
moved this from In progress
to Done 103
in Default project
Nov 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When avocado job is interrupted, the test status might be overwritten is something happens during tearDown.
Steps to reproduce
test.py:
command:
Expected behavior
A clear and concise description of what you expected to happen.
Current behavior
The text was updated successfully, but these errors were encountered: