mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
[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:
parent
92e99b6545
commit
912cf4f603
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user