]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-test: fix netns test
authorTaehee Yoo <ap420073@gmail.com>
Thu, 1 Nov 2018 14:32:50 +0000 (23:32 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 1 Nov 2018 22:32:55 +0000 (23:32 +0100)
commit9ff99156b63ee39af3e8fce5ae5b0a2e2e8f0170
treeb4637e05ad000f46e56c3c73da3aa33bfb9b6f69
parent8c918db6a7afc171fb2baf9c20ec6385940d2bfc
iptables-test: fix netns test

The libxt_rateest test always fails because dependent command is not
executed in netns.

(@iptables -I INPUT -j RATEEST --rateest-name RE1 --rateest-interval \
 250.0ms --rateest-ewmalog 500.0ms)

After this path, adding netns command is executed first.
Then test commands are executed.

Fixes: 0123183f43a9 ("iptables-test: add -N option to exercise netns removal path")
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables-test.py