[CRIU] [PATCH 2/2] test: fix conntracks test

Vitaly Ostrosablin vostrosablin at virtuozzo.com
Tue Jan 10 04:17:01 PST 2017


In some old distros -m state doesn't work correctly and test fails
because test output diverges from expected results. Here we replace
obsoleted -m state with -m conntrack.
---
 test/zdtm/static/conntracks | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/static/conntracks b/test/zdtm/static/conntracks
index f2819582..a30e0e26 100755
--- a/test/zdtm/static/conntracks
+++ b/test/zdtm/static/conntracks
@@ -29,7 +29,7 @@ do_start()
 
 	do_or_fail "can't install a state match" \
 		iptables -A INPUT \
-		-m state --state RELATED,ESTABLISHED -j ACCEPT
+		-m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
 
 	do_or_fail "can't list the loaded iptables" \
 		iptables -L \> "$statefile"
-- 
2.11.0



More information about the CRIU mailing list