[#274] Change mark log analyzer #274

Merged
abereziny merged 1 commit from i.niyazov/frostfs-testcases:fix-marks-test-logs-v0.39 into support/v0.39 2024-07-25 15:30:51 +00:00
2 changed files with 4 additions and 2 deletions

View file

@ -68,3 +68,4 @@ markers =
static_session_container: tests for a static session in a container static_session_container: tests for a static session in a container
shard: shard management tests shard: shard management tests
logs_after_session: tests after a session with logs logs_after_session: tests after a session with logs
session_logs: check logs messages

View file

@ -20,8 +20,9 @@ def pytest_generate_tests(metafunc: pytest.Metafunc):
) )
@pytest.mark.logs_after_session @pytest.mark.session_logs
class TestLogs: class TestLogs:
@pytest.mark.logs_after_session
@pytest.mark.order(1000) @pytest.mark.order(1000)
@allure.title("Check logs from frostfs-testcases with marks '{request.config.option.markexpr}' - search errors") @allure.title("Check logs from frostfs-testcases with marks '{request.config.option.markexpr}' - search errors")
def test_logs_search_errors( def test_logs_search_errors(