]> git.ipfire.org Git - thirdparty/iptables.git/commit
tests: shell: Fix skip checks with --host mode
authorPhil Sutter <phil@nwl.cc>
Wed, 12 Feb 2020 20:26:06 +0000 (21:26 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 14 Feb 2020 11:16:32 +0000 (12:16 +0100)
commit2b2b7948c1960ba4680677664ff58477be869de6
tree7cc42ce27b7c354afd999f0600dcb165983af7c3
parent8e76391096f12212985c401ee83a67990aa27a29
tests: shell: Fix skip checks with --host mode

When testing host binaries, XT_MULTI variable contains just the program
name without path component which most skip checks didn't expect. Fix
them, and while being at it also reduce indenting level in two scripts
by moving the skip check up front with an early exit call.

Fixes: 416898e335322 ("tests/shell: Support testing host binaries")
Signed-off-by: Phil Sutter <phil@nwl.cc>
13 files changed:
iptables/tests/shell/testcases/arptables/0001-arptables-save-restore_0
iptables/tests/shell/testcases/arptables/0002-arptables-restore-defaults_0
iptables/tests/shell/testcases/arptables/0003-arptables-verbose-output_0
iptables/tests/shell/testcases/ebtables/0001-ebtables-basic_0
iptables/tests/shell/testcases/ebtables/0002-ebtables-save-restore_0
iptables/tests/shell/testcases/ebtables/0003-ebtables-restore-defaults_0
iptables/tests/shell/testcases/ebtables/0004-save-counters_0
iptables/tests/shell/testcases/ebtables/0005-ifnamechecks_0
iptables/tests/shell/testcases/firewalld-restore/0001-firewalld_0
iptables/tests/shell/testcases/ipt-restore/0004-restore-race_0
iptables/tests/shell/testcases/nft-only/0001compat_0
iptables/tests/shell/testcases/nft-only/0002invflags_0
iptables/tests/shell/testcases/nft-only/0003delete-with-comment_0