diff mbox

[ovs-dev,2/3] ovn.at: Avoid using GNU sed extension

Message ID 1448530892-4893-2-git-send-email-yamamoto@midokura.com
State Rejected
Headers show

Commit Message

Takashi Yamamoto Nov. 26, 2015, 9:41 a.m. UTC
Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
---
 tests/ovn.at | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Simon Horman Nov. 27, 2015, 2:14 a.m. UTC | #1
On Thu, Nov 26, 2015 at 06:41:31PM +0900, YAMAMOTO Takashi wrote:
> Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>

Reviewed-by: Simon Horman <simon.horman@netronome.com>
Ben Pfaff Nov. 27, 2015, 6:20 p.m. UTC | #2
On Thu, Nov 26, 2015 at 06:41:31PM +0900, YAMAMOTO Takashi wrote:
> Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
> ---
>  tests/ovn.at | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/ovn.at b/tests/ovn.at
> index de0a830..a4dbf96 100644
> --- a/tests/ovn.at
> +++ b/tests/ovn.at
> @@ -566,7 +566,7 @@ ovn-sbctl dump-flows -- list multicast_group
>  # more) list the VIFs on which the packet should be received.  INPORT and the
>  # OUTPORTs are specified as lport numbers, e.g. 11 for vif11.
>  trim_zeros() {
> -    sed 's/\(00\)\{1,\}$//'
> +    sed 's/\(00\)\(00\)*$//'
>  }

I'm pretty sure this is a standard POSIX basic regular expression, see
9.3.6 item 5 at http://pubs.opengroup.org/onlinepubs/9699919799/.

BSD doesn't support it?
Takashi Yamamoto Nov. 30, 2015, 3:30 a.m. UTC | #3
hi,

On Sat, Nov 28, 2015 at 3:20 AM, Ben Pfaff <blp@ovn.org> wrote:
> On Thu, Nov 26, 2015 at 06:41:31PM +0900, YAMAMOTO Takashi wrote:
>> Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
>> ---
>>  tests/ovn.at | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/tests/ovn.at b/tests/ovn.at
>> index de0a830..a4dbf96 100644
>> --- a/tests/ovn.at
>> +++ b/tests/ovn.at
>> @@ -566,7 +566,7 @@ ovn-sbctl dump-flows -- list multicast_group
>>  # more) list the VIFs on which the packet should be received.  INPORT and the
>>  # OUTPORTs are specified as lport numbers, e.g. 11 for vif11.
>>  trim_zeros() {
>> -    sed 's/\(00\)\{1,\}$//'
>> +    sed 's/\(00\)\(00\)*$//'
>>  }
>
> I'm pretty sure this is a standard POSIX basic regular expression, see
> 9.3.6 item 5 at http://pubs.opengroup.org/onlinepubs/9699919799/.
>
> BSD doesn't support it?

hm, you are right.  and sed in NetBSD seems to support it.
i guess i was confused by some other things.
i withdraw this patch.  thank you!
diff mbox

Patch

diff --git a/tests/ovn.at b/tests/ovn.at
index de0a830..a4dbf96 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -566,7 +566,7 @@  ovn-sbctl dump-flows -- list multicast_group
 # more) list the VIFs on which the packet should be received.  INPORT and the
 # OUTPORTs are specified as lport numbers, e.g. 11 for vif11.
 trim_zeros() {
-    sed 's/\(00\)\{1,\}$//'
+    sed 's/\(00\)\(00\)*$//'
 }
 for i in 1 2 3; do
     for j in 1 2 3; do
@@ -775,7 +775,7 @@  ovn-sbctl show
 # more) list the VIFs on which the packet should be received.  INPORT and the
 # OUTPORTs are specified as lport numbers, e.g. 1 for vif1.
 trim_zeros() {
-    sed 's/\(00\)\{1,\}$//'
+    sed 's/\(00\)\(00\)*$//'
 }
 for i in 1 2 3; do
     : > $i.expected
@@ -952,7 +952,7 @@  sleep 1
 # more) list the VIFs on which the packet should be received.  INPORT and the
 # OUTPORTs are specified as lport numbers, e.g. 11 for vif11.
 trim_zeros() {
-    sed 's/\(00\)\{1,\}$//'
+    sed 's/\(00\)\(00\)*$//'
 }
 for i in 1 2 3; do
     for j in 1 2 3; do