From 7a0d648eb50bf2632aa6f03f2d6b8ed5779090f8 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 18 Jul 2023 11:11:22 +0200 Subject: [PATCH] tests: Fix spurious failure on CentOS Stream 8 --- tests/iptables-save-cuts-space-before-j/runtest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/iptables-save-cuts-space-before-j/runtest.sh b/tests/iptables-save-cuts-space-before-j/runtest.sh index a6a5099..2a83bee 100755 --- a/tests/iptables-save-cuts-space-before-j/runtest.sh +++ b/tests/iptables-save-cuts-space-before-j/runtest.sh @@ -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"