tests: Fix spurious failure on CentOS Stream 8

This commit is contained in:
Phil Sutter 2023-07-18 11:11:22 +02:00
parent 4109868d74
commit 7a0d648eb5

View File

@ -40,9 +40,9 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest
RULE="-A INPUT -p dccp -m dccp --dccp-type RESET,INVALID -j LOG"
if rlIsRHEL '>6' || rlIsFedora; then
RULE="${RULE/type/types}" # it is exported under other name
RULE="-A INPUT -p dccp -m dccp --dccp-types RESET,INVALID -j LOG"
if rlIsRHEL '<7'; then
RULE="${RULE/types/type}" # it is exported under other name
fi
rlLogInfo "using rule '$RULE'"
rlRun "iptables $RULE" 0 "add rule for ipv4"