Fixing singlehost test
This commit is contained in:
parent
5d8b158797
commit
489cc9a4c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue