Fixing tests

fixing issues with running on testing-farm
/fuctionality/selftest
/functionality/singlehost
This commit is contained in:
František Hrdina 2023-08-17 14:37:08 +02:00
commit f2abde5767
3 changed files with 4 additions and 8 deletions

View file

@ -33,6 +33,7 @@ recommend:
- procmail
- mailx
- nmap
- s-nail
duration: 30m
enabled: true
tag:

View file

@ -81,14 +81,9 @@ rlJournalStart
rlRun "nmap -p 25 localhost"
for i in `seq 1 $MAIL_SEND`; do
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
mail -s test_message_subject $USER1@localhost.localdomain << EOF
This is $i. test message
EOF
fi
sleep 0.4
done
sleep 60