Fixing singlehost test

This commit is contained in:
František Hrdina 2023-08-15 12:41:39 +02:00
commit 489cc9a4c5

View file

@ -76,7 +76,7 @@ rlJournalStart
rlPhaseStartTest "Sending mails"
for i in `seq 1 $MAIL_SEND`; do
if (rlIsRHEL '>=9' || rlIsCentOS '>=9'); then
if (rlIsRHEL '>=9' || rlIsCentOS '>=9' || rlIsFedora); then
rlRun "echo -e \"Subject: TEST\\\nThis is $i. test message\" | sendmail -v $USER1@localhost" 0 "Sending email"
else
mail -s test_message_subject $USER1@localhost << EOF
@ -112,7 +112,7 @@ EOF
rlRun "/usr/sbin/sendmail -q"
sleep 30
if (rlIsRHEL '>=9' || rlIsCentOS '>=9'); then
if (rlIsRHEL '>=9' || rlIsCentOS '>=9' || rlIsFedora); then
rlRun "cat /var/spool/mail/$USER1 > $mail_tmp"
else
mail << EOF > /a.temp