* [PATCH] ipset: Fix ipset command replacement in runtest.sh
@ 2017-05-30 10:46 Neutron Soutmun
2017-06-04 12:00 ` Jozsef Kadlecsik
0 siblings, 1 reply; 2+ messages in thread
From: Neutron Soutmun @ 2017-05-30 10:46 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
Fix the ipset command replacement.
For ipset="/sbin/ipset"
Actual:
/sbin//sbin/ipset 2>.foo.err | ... | xargs -n1 ipset
Expected:
/sbin/ipset 2>.foo.err | ... | xargs -n1 /sbin/ipset
---
tests/runtest.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 186f11d..8f4c02a 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -96,7 +96,7 @@ for types in $tests; do
echo -ne "$types: $what: "
cmd=`echo $cmd | sed "s|ipset|$ipset 2>.foo.err|"`
# For the case: ipset list | ... | xargs -n1 ipset
- cmd=`echo $cmd | sed "s|ipset|$ipset|"`
+ cmd=`echo $cmd | sed "s|ipset|$ipset|2g"`
eval $cmd
r=$?
# echo $ret $r
--
2.11.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipset: Fix ipset command replacement in runtest.sh
2017-05-30 10:46 [PATCH] ipset: Fix ipset command replacement in runtest.sh Neutron Soutmun
@ 2017-06-04 12:00 ` Jozsef Kadlecsik
0 siblings, 0 replies; 2+ messages in thread
From: Jozsef Kadlecsik @ 2017-06-04 12:00 UTC (permalink / raw)
To: Neutron Soutmun; +Cc: netfilter-devel
Hi,
On Tue, 30 May 2017, Neutron Soutmun wrote:
> Fix the ipset command replacement.
>
> For ipset="/sbin/ipset"
>
> Actual:
> /sbin//sbin/ipset 2>.foo.err | ... | xargs -n1 ipset
> Expected:
> /sbin/ipset 2>.foo.err | ... | xargs -n1 /sbin/ipset
> ---
> tests/runtest.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch is applied, thanks!
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-04 12:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 10:46 [PATCH] ipset: Fix ipset command replacement in runtest.sh Neutron Soutmun
2017-06-04 12:00 ` Jozsef Kadlecsik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.