CLI tests: add opt-in envvar EYNOLLAH_OPTIONS for device selection,

model directory etc.
This commit is contained in:
Robert Sachunsky 2026-05-12 19:03:32 +02:00
parent 1ed633bc25
commit 87cce6c963

View file

@ -1,4 +1,5 @@
from typing import List
import os
import pytest
import logging
@ -31,6 +32,8 @@ def run_eynollah_ok_and_check_logs(
subcommand,
*args
]
if 'EYNOLLAH_OPTIONS' in os.environ:
args = os.environ['EYNOLLAH_OPTIONS'].split() + args
if pytestconfig.getoption('verbose') > 0:
args = ['-l', 'DEBUG'] + args
caplog.set_level(logging.INFO)