[#208] Tune sanity mark and log checker

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
support/v0.39
Andrey Berezin 2024-03-18 12:16:10 +03:00
parent 3387f88ea2
commit b1cb86e360
2 changed files with 2 additions and 2 deletions

View File

@ -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})"

View File

@ -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)