Skip to content

Commit 53f0e23

Browse files
Fix: handle empty --eest_log_dir argument correctly
Co-authored-by: Sam Wilson <[email protected]>
1 parent 1761d07 commit 53f0e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tests/src/pytest_plugins/custom_logging/plugin_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def pytest_configure(config: pytest.Config) -> None:
327327

328328
# Use --log-to if provided, otherwise default to ./logs
329329
log_dir = getattr(config.option, "eest_log_dir", None)
330-
base_logs_dir = Path(log_dir) if log_dir else Path("logs")
330+
base_logs_dir = Path(log_dir) if log_dir is not None else Path("logs")
331331
base_logs_dir.mkdir(parents=True, exist_ok=True)
332332
log_file_path = base_logs_dir / log_filename
333333

0 commit comments

Comments
 (0)