Skip to content
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

Using addCleanup() instead of TearDown(). #562

Merged
merged 33 commits into from
Jan 23, 2024
Merged

Conversation

ykargin
Copy link
Contributor

@ykargin ykargin commented Jan 8, 2024

Fix #534

@ykargin ykargin self-assigned this Jan 8, 2024
Copy link
Contributor

@RomanBelozerov RomanBelozerov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. You should remove empty tearDown methods or you must call super().tearDown()
  2. You should not to add tearDown to cleanup functions. This method will be called after test anyway.
  3. I think there is not need to rewrite tearDown for tests inherited from FunctionalTests and StressTests. This is old framework and it will be reworked in Rework the test suite #56

framework/tester.py Outdated Show resolved Hide resolved
framework/tester.py Outdated Show resolved Hide resolved
reconf/reconf_stress.py Outdated Show resolved Hide resolved
very_many_backends/multi_backend.py Outdated Show resolved Hide resolved
very_many_backends/test_deadtime_1M.py Outdated Show resolved Hide resolved
…ation

Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
* Replace tearDown() with addCleanup().
* Minor typo fix

Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
This reverts commit 1a77d1e.
No need to modify old-framework based tests
This reverts commit f3b5343.
No need to modify old-framework based tests
This reverts commit 935eb70.
No need to modify old-framework based tests
attribute 'oops' for tester.py

Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
Signed-off-by: Yaroslav Kargin <yk@tempesta-tech.com>
@ykargin ykargin merged commit a001eff into master Jan 23, 2024
1 check passed
@ykargin ykargin deleted the yk-534-add-cleanup branch June 19, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite tearDown methods to cleanups (addCleanup)
3 participants