From b1cb86e360708d81e42a5f705809ad8f0b0e2392 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Mon, 18 Mar 2024 12:16:10 +0300 Subject: [PATCH] [#208] Tune sanity mark and log checker Signed-off-by: Andrey Berezin --- pytest_tests/testsuites/conftest.py | 2 +- pytest_tests/testsuites/special/test_logs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_tests/testsuites/conftest.py b/pytest_tests/testsuites/conftest.py index 6d2f4392..de9c8a93 100644 --- a/pytest_tests/testsuites/conftest.py +++ b/pytest_tests/testsuites/conftest.py @@ -45,7 +45,7 @@ SERVICE_ACTIVE_TIME = 20 # Add logs check test even if it's not fit to mark selectors def pytest_configure(config: pytest.Config): markers = config.option.markexpr - if markers != "": + if markers != "" and "sanity" not in markers: config.option.markexpr = f"logs_after_session or ({markers})" diff --git a/pytest_tests/testsuites/special/test_logs.py b/pytest_tests/testsuites/special/test_logs.py index d6f9b1a3..1a26f582 100644 --- a/pytest_tests/testsuites/special/test_logs.py +++ b/pytest_tests/testsuites/special/test_logs.py @@ -36,7 +36,7 @@ class TestLogs: logs_dir = os.path.join(temp_directory, "logs") os.makedirs(logs_dir) # Using \b here because 'oom' and 'panic' can sometimes be found in OID or CID - issues_regex = r"\bpanic\b|\boom\b|too many|insufficient funds|insufficient amount of gas|wallet passwd|secret \bkey\b|access key|cannot assign requested address" + issues_regex = r"\bpanic\b|\boom\b|too many|insufficient funds|insufficient amount of gas|wallet passwd|secret \bkey\b|access \bkey\b|cannot assign requested address" exclude_filter = r"too many requests" time.sleep(2) -- 2.45.2