diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-15 13:15:49 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-15 14:53:52 +0100 |
commit | b555bfed542635259c489596630a75fce50aab1b (patch) | |
tree | 21ad51726d7a1ec8b076408047c4d8844c32d6bb /iptables | |
parent | c293e116fc6130baae9ed82ca122b69ee6ff8390 (diff) |
tests: shell: Fix 0004-return-codes_0 for static builds
In static builds, xtables_find_match() returns a slightly different
error message if not found - make grep accept both.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rwxr-xr-x | iptables/tests/shell/testcases/iptables/0004-return-codes_0 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/tests/shell/testcases/iptables/0004-return-codes_0 b/iptables/tests/shell/testcases/iptables/0004-return-codes_0 index dcd9dfd3..33c5f1f3 100755 --- a/iptables/tests/shell/testcases/iptables/0004-return-codes_0 +++ b/iptables/tests/shell/testcases/iptables/0004-return-codes_0 @@ -39,7 +39,7 @@ E2BIG_D=": Index of deletion too big." E2BIG_R=": Index of replacement too big." EBADRULE=": Bad rule (does a matching rule exist in that chain?)." #ENOTGT=" v[0-9\.]* [^ ]*: Couldn't load target \`foobar':No such file or directory" -ENOMTH=" v[0-9\.]* [^ ]*: Couldn't load match \`foobar':No such file or directory" +ENOMTH=" v[0-9\.]* [^ ]*: Couldn't \(load\|find\) match \`foobar'\(:No such file or directory\|\)" ENOTBL=": can't initialize iptables table \`foobar': Table does not exist" # test chain creation |