diff options
author | Phil Sutter <phil@nwl.cc> | 2019-09-03 15:22:39 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-09-26 10:41:12 +0200 |
commit | 4e2c54c75c4221c2e34049b37ea50d25524755b8 (patch) | |
tree | e21df8a6073d91e7888c8d49361478bb195683a4 | |
parent | 1b148f23cd0ccb0f0eafef92761a98cf6b8b1396 (diff) | |
download | platform_external_iptables-4e2c54c75c4221c2e34049b37ea50d25524755b8.tar.gz platform_external_iptables-4e2c54c75c4221c2e34049b37ea50d25524755b8.tar.bz2 platform_external_iptables-4e2c54c75c4221c2e34049b37ea50d25524755b8.zip |
tests/shell: Speed up ipt-restore/0004-restore-race_0
This test tended to cause quite excessive load on my system, sometimes
taking longer than all other tests combined. Even with the reduced
numbers, it still fails reliably after reverting commit 58d7de0181f61
("xtables: handle concurrent ruleset modifications").
Fixes: 4000b4cf2ea38 ("tests: add test script for race-free restore")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
-rwxr-xr-x | iptables/tests/shell/testcases/ipt-restore/0004-restore-race_0 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/tests/shell/testcases/ipt-restore/0004-restore-race_0 b/iptables/tests/shell/testcases/ipt-restore/0004-restore-race_0 index a92d18dc..96a5e66d 100755 --- a/iptables/tests/shell/testcases/ipt-restore/0004-restore-race_0 +++ b/iptables/tests/shell/testcases/ipt-restore/0004-restore-race_0 @@ -24,7 +24,7 @@ clean_tempfile() trap clean_tempfile EXIT -ENTRY_NUM=$((RANDOM%100)) +ENTRY_NUM=$((RANDOM%10)) UCHAIN_NUM=$((RANDOM%10)) get_target() @@ -87,7 +87,7 @@ fi case "$XT_MULTI" in */xtables-nft-multi) - attempts=$((RANDOM%200)) + attempts=$((RANDOM%10)) attempts=$((attempts+1)) ;; *) |