Tune sanity mark and log checker #208

Merged
d.zayakin merged 1 commit from abereziny/frostfs-testcases:feature-tune-log-checker into master 2024-03-18 09:21:24 +00:00
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 # Add logs check test even if it's not fit to mark selectors
def pytest_configure(config: pytest.Config): def pytest_configure(config: pytest.Config):
markers = config.option.markexpr markers = config.option.markexpr
if markers != "": if markers != "" and "sanity" not in markers:
config.option.markexpr = f"logs_after_session or ({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") logs_dir = os.path.join(temp_directory, "logs")
os.makedirs(logs_dir) os.makedirs(logs_dir)
# Using \b here because 'oom' and 'panic' can sometimes be found in OID or CID # 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" exclude_filter = r"too many requests"
time.sleep(2) time.sleep(2)