Execute teardown after skip in test
Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
This commit is contained in:
parent
ed0052f502
commit
c314aa294a
@ -1 +1 @@
|
|||||||
Subproject commit 548dcc58d4f29d37a2a2f97149928853e4d628a7
|
Subproject commit 6f60cfc05187d8cde5e3b3e613b13dfc2b0b3b77
|
@ -82,9 +82,6 @@ def pytest_runtest_teardown():
|
|||||||
This method is executed always in the end of each test, even if it fails or raises exception in
|
This method is executed always in the end of each test, even if it fails or raises exception in
|
||||||
prepare stage.
|
prepare stage.
|
||||||
"""
|
"""
|
||||||
if TestRun.outcome == "skipped":
|
|
||||||
return
|
|
||||||
|
|
||||||
TestRun.LOGGER.end_all_groups()
|
TestRun.LOGGER.end_all_groups()
|
||||||
|
|
||||||
with TestRun.LOGGER.step("Cleanup after test"):
|
with TestRun.LOGGER.step("Cleanup after test"):
|
||||||
|
Loading…
Reference in New Issue
Block a user