Collect journal data.
This commit is contained in:
parent
01b18628d3
commit
147d76e5ec
3 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue