]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: shell: Fix 0004-return-codes_0 for static builds
authorPhil Sutter <phil@nwl.cc>
Tue, 15 Mar 2022 12:15:49 +0000 (13:15 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 15 Mar 2022 13:53:52 +0000 (14:53 +0100)
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>
iptables/tests/shell/testcases/iptables/0004-return-codes_0

index dcd9dfd3c0806e03159c480e606270289f12fa60..33c5f1f35d17f49e245a5bd7bc0c421197d2b472 100755 (executable)
@@ -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