From 79887f04b9391b8a42fa36d31c26c6e2c81ce96e Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Mon, 4 Sep 2023 13:23:15 +0200 Subject: [PATCH] Call search component directly. --- driver/tests.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/driver/tests.py b/driver/tests.py index e773e10d64..c594d87ebc 100644 --- a/driver/tests.py +++ b/driver/tests.py @@ -14,8 +14,10 @@ from .aliases import ALIASES, PORTFOLIOS from .arguments import EXAMPLES +from .call import check_call from . import limits from . import returncodes +from .run_components import get_executable, REL_SEARCH_PATH from .util import REPO_ROOT_DIR, find_domain_filename @@ -88,13 +90,20 @@ def _convert_to_standalone_config(config): return config +def _run_search(config): + check_call( + "search", + [get_executable("release", REL_SEARCH_PATH)] + list(config), + stdin="output.sas") + + def test_portfolio_configs(): all_configs = set() for portfolio in PORTFOLIOS.values(): configs = _get_portfolio_configs(Path(portfolio)) all_configs |= set(tuple(_convert_to_standalone_config(config)) for config in configs) for config in all_configs: - run_driver(["output.sas"] + list(config)) + _run_search(config) @pytest.mark.skipif(not limits.can_set_time_limit(), reason="Cannot set time limits on this system")