[TRTLLM-8785][fix] fix conflicts between periodic-junit and store-durations (#8518)

Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com>
This commit is contained in:
Ivy Zhang 2025-10-22 16:36:47 +08:00 committed by GitHub
parent 92e99b6545
commit 912cf4f603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(