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
19 changes: 19 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,23 @@ provision:
disk:
- size: ">= 512 GB"

finish:
how: shell
script: |
# Archive logs to TMT_PLAN_DATA for post-test analysis
mkdir -p "$TMT_PLAN_DATA/logs"

# Copy audit logs (SELinux denials, audit events)
if [ -f /var/log/audit/audit.log ]; then
cp /var/log/audit/audit.log "$TMT_PLAN_DATA/logs/"
echo "Audit logs copied to $TMT_PLAN_DATA/logs/audit.log"
else
echo "No audit log found at /var/log/audit/audit.log"
fi

# Capture full journal (current boot only)
journalctl -b --no-pager --all --output=short-precise &> "$TMT_PLAN_DATA/logs/journal.log"
echo "Journal output saved to $TMT_PLAN_DATA/logs/journal.log"

echo "All logs archived to $TMT_PLAN_DATA/logs/"

Loading