fix: sleep between tests oof

This commit is contained in:
Ashwin Bharambe 2025-03-14 14:45:37 -07:00
parent a626b7bce3
commit c5857a9b50

View file

@ -8,6 +8,7 @@ import itertools
import os
import platform
import textwrap
import time
from dotenv import load_dotenv
@ -18,6 +19,12 @@ from .report import Report
logger = get_logger(__name__, category="tests")
def pytest_runtest_teardown(item):
interval_seconds = os.getenv("LLAMA_STACK_TEST_INTERVAL_SECONDS")
if interval_seconds:
time.sleep(float(interval_seconds))
def pytest_configure(config):
config.option.tbstyle = "short"
config.option.disable_warnings = True