From b9fd26762035dc7094aba6ec6fac3eaa67461863 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Mon, 6 Apr 2026 19:20:03 +0100 Subject: [PATCH] fix: apply `--max-odirs` to `RuntimeBackend` as well This was being applied in the command-line interface to the launchers, but the relevant logic was not ported to the `RuntimeBackend` base class when it was introduced. Signed-off-by: Alex Jones --- src/dvsim/cli/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dvsim/cli/run.py b/src/dvsim/cli/run.py index c7314b9b..ff42cae1 100644 --- a/src/dvsim/cli/run.py +++ b/src/dvsim/cli/run.py @@ -43,6 +43,7 @@ from dvsim.launcher.sge import SgeLauncher from dvsim.launcher.slurm import SlurmLauncher from dvsim.logging import LOG_LEVELS, configure_logging, log +from dvsim.runtime.backend import RuntimeBackend from dvsim.runtime.registry import BackendType, backend_registry from dvsim.scheduler.async_status_printer import StatusPrinter from dvsim.scheduler.async_status_printer import get_status_printer as get_async_status_printer @@ -451,7 +452,7 @@ def parse_args(argv: list[str] | None = None): help=( "When tests are run, older runs are backed " "up. Discard all but the N most recent (defaults " - "to 5)." + "to %(default)d)." ), ) @@ -933,6 +934,7 @@ def main(argv: list[str] | None = None) -> None: LsfLauncher.max_parallel = args.max_parallel NcLauncher.max_parallel = args.max_parallel Launcher.max_odirs = args.max_odirs + RuntimeBackend.max_output_dirs = args.max_odirs FakeLauncher.max_parallel = args.max_parallel set_launcher_type(is_local=args.local, fake=args.fake)