forked from phoenix-oss/llama-stack-mirror
fix: sleep between tests oof
This commit is contained in:
parent
a626b7bce3
commit
c5857a9b50
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ import itertools
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import textwrap
|
import textwrap
|
||||||
|
import time
|
||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
@ -18,6 +19,12 @@ from .report import Report
|
||||||
logger = get_logger(__name__, category="tests")
|
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):
|
def pytest_configure(config):
|
||||||
config.option.tbstyle = "short"
|
config.option.tbstyle = "short"
|
||||||
config.option.disable_warnings = True
|
config.option.disable_warnings = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue