Collect journal data.

This commit is contained in:
Gordon Messmer 2024-07-28 23:48:56 -07:00
commit 147d76e5ec
3 changed files with 9 additions and 0 deletions

View file

@ -149,6 +149,9 @@ EOF
else
rlServiceRestore "postfix"
fi
# Collect journal data. If the test fails, the log probably
# explains why, which may be difficult to determine without logs.
rlRun "journalctl -b 0 > '$TMT_TEST_DATA'/journalctl.txt"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View file

@ -148,6 +148,9 @@ EOF
else
rlServiceRestore "postfix"
fi
# Collect journal data. If the test fails, the log probably
# explains why, which may be difficult to determine without logs.
rlRun "journalctl -b 0 > '$TMT_TEST_DATA'/journalctl.txt"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View file

@ -130,6 +130,9 @@ EOF
rlRun "rm -rf /etc/postfix/vmailbox.$storagePostfix"
rlRun "rm -rf /etc/postfix/virtual.$storagePostfix"
rlServiceRestore "postfix"
# Collect journal data. If the test fails, the log probably
# explains why, which may be difficult to determine without logs.
rlRun "journalctl -b 0 > '$TMT_TEST_DATA'/journalctl.txt"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd