> From: "Lance Richardson" <[email protected]>
> To: "Ben Pfaff" <[email protected]>
> Cc: [email protected], [email protected]
> Sent: Thursday, 13 July, 2017 8:12:30 PM
> Subject: Re: [ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767
> 1891 1892 1893 1894 1895 1896 1900 1902
> failed
>
> > From: "Ben Pfaff" <[email protected]>
> > To: "Lance Richardson" <[email protected]>
> > Cc: [email protected], [email protected]
> > Sent: Thursday, 13 July, 2017 7:46:13 PM
> > Subject: Re: [ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767
> > 1891 1892 1893 1894 1895 1896 1900 1902
> > failed
> >
> > On Mon, Jul 10, 2017 at 01:14:38PM -0400, Lance Richardson wrote:
> > > > From: "Stuart Cardall" <[email protected]>
> > > > To: [email protected]
> > > > Sent: Saturday, 8 July, 2017 5:22:17 PM
> > > > Subject: [ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767
> > > > 1891 1892 1893 1894 1895 1896 1900 1902 failed
> > > >
> > > >
> > > >
> > > > Hello,
> > > >
> > > > Attached is the test suite log for ovs 2.7.1 in Alpine Linux / musl c:
> > > >
> > > > testsuite: 7 8 767 1891 1892 1893 1894 1895 1896 1900 1902 failed
> > > >
> > > >
> > > > Kind Regards,
> > > >
> > > > Stuart Cardall.
> > > >
> > >
> > > These will pass if GNU awk is used instead of busybox awk (apk add gawk).
> > >
> > > 7: completion.at:343 vsctl-bashcomp - basic verification
> > > 8: completion.at:425 vsctl-bashcomp - argument completion
> >
> > That's interesting. I thought I'd try to figure out the root of the
> > problem, but I don't get failures in my usual environment if I replace
> > "awk" by "busybox awk" and run these tests, so I wonder whether there's
> > something else at play.
> >
>
> I just tried that (s/awk/busybox awk/ in utilities/ovs-vsctl-bashcomp.bash)
> and got failures in those tests with similar symptom (no completions given).
>
> This was on F26, x86_64, with busybox-1.22.1-6.
>
> Strange... no idea. I did find a nice wiki explaining some differences
> between
> busybox awk and some other implementations:
>
> https://wiki.alpinelinux.org/wiki/Awk
>
One more tidbit... if I use busybox awk here, I get failures, otherwise I
don't (the other invocations of awk in this script work either way):
# This is a convenience function to make sure that user input is
# looked at as a fixed string when being compared to something. $1 is
# the input; this behaves like 'grep "^$1"' but deals with regex
# metacharacters in $1.
_ovs_vsctl_check_startswith_string () {
awk 'index($0, thearg)==1' thearg="$1"
}
The extent of my awk knowledge is knowing where the name comes from, so
I have no idea what might causing the problem here or what alternative
implementations might be worth trying...
Regards,
Lance
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss