Skip to content

Commit 912cf4f

Browse files
authored
[TRTLLM-8785][fix] fix conflicts between periodic-junit and store-durations (#8518)
Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com>
1 parent 92e99b6 commit 912cf4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/defs/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,6 +2232,10 @@ def pytest_configure(config):
22322232
periodic_interval = config.getoption("--periodic-interval")
22332233
periodic_batch_size = config.getoption("--periodic-batch-size")
22342234

2235+
# Create output directory early (like --junitxml does) to avoid conflicts with other plugins
2236+
# that may need to write to the same directory (e.g., pytest-split)
2237+
os.makedirs(output_dir, exist_ok=True)
2238+
22352239
# Create the reporter with logger
22362240
xmlpath = os.path.join(output_dir, "results.xml")
22372241
reporter = PeriodicJUnitXML(

0 commit comments

Comments
 (0)