Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@ def _collect_logs(instance: IntegrationInstance, node_id: str,
integration_settings.LOCAL_LOG_PATH
) / session_start_time / node_id_path
log.info("Writing logs to %s", log_dir)

# Add a symlink to the latest log output directory
last_symlink = Path(integration_settings.LOCAL_LOG_PATH) / 'last'
if os.path.islink(last_symlink):
os.unlink(last_symlink)
os.symlink(
Path(integration_settings.LOCAL_LOG_PATH) / session_start_time,
last_symlink)

if not log_dir.exists():
log_dir.mkdir(parents=True)
tarball_path = log_dir / 'cloud-init.tar.gz'
Expand Down