From 912cf4f60398beabdcdd7110ad4d295b75b31f51 Mon Sep 17 00:00:00 2001 From: Ivy Zhang <25222398+crazydemo@users.noreply.github.com> Date: Wed, 22 Oct 2025 16:36:47 +0800 Subject: [PATCH] [TRTLLM-8785][fix] fix conflicts between periodic-junit and store-durations (#8518) Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com> --- tests/integration/defs/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/defs/conftest.py b/tests/integration/defs/conftest.py index f2d9e83a95..777f22db04 100644 --- a/tests/integration/defs/conftest.py +++ b/tests/integration/defs/conftest.py @@ -2232,6 +2232,10 @@ def pytest_configure(config): periodic_interval = config.getoption("--periodic-interval") periodic_batch_size = config.getoption("--periodic-batch-size") + # Create output directory early (like --junitxml does) to avoid conflicts with other plugins + # that may need to write to the same directory (e.g., pytest-split) + os.makedirs(output_dir, exist_ok=True) + # Create the reporter with logger xmlpath = os.path.join(output_dir, "results.xml") reporter = PeriodicJUnitXML(