I found the issue but not the root cause,

turns out, the autotest really does not like opening 'interactive shell'
inside the
AT_CHECK.  The test hangs at (in function _ovs_vsctl_get_PS1):

"""
v="$(bash --norc --noprofile -i 2>&1 <<< $'PS1=\"'"$myPS1"$'\" \n# Begin
prompt\n# End prompt')"
"""

Unfortunately, I could not find the root cause for this...

In use the same way to get PS1 in my ovs-appctl-bashcomp.bash, however,
I disable the function when running in test mode (that's why we did not see
it
in appctl completion tests).  So, maybe we could do the same?

What do you guys think?~

Thanks,
Alex Wang,

On Wed, Mar 4, 2015 at 9:33 AM, Alex Wang <al...@nicira.com> wrote:

>
> On Tue, Mar 3, 2015 at 9:51 PM, Ben Pfaff <b...@nicira.com> wrote:
>
>> On Mon, Feb 23, 2015 at 08:49:00AM -0800, Alex Wang wrote:
>> > This commit includes the unit tests for ovs-vsctl-bashcomp
>> > and refines the ovs-command-bashcomp.INSTALL.md to introduce
>> > the bash completion for ovs-vsctl.
>> >
>> > Signed-off-by: Alex Wang <al...@nicira.com>
>>
>> It appears to me that there is something wrong with some of the tests or
>> the code that it is testing.  When I run "make check
>> TESTSUITEFLAGS=-j10", tests 8 and 9 hang.  When I then hit Control+C to
>> kill the tests, I get a couple of "bash" processes that start using 100%
>> CPU until I "kill -9" them.
>>
>> I don't get this behavior when I run plain "make check".  Then the tests
>> pass.
>>
>>
>
> Thx for the report, let me dig into it.
>
>
>
>> My bash version is:
>>
>>     blp@sigabrt:~/nicira/ovs/_build(0)$ bash --version
>>     GNU bash, version 4.3.30(1)-release (i586-pc-linux-gnu)
>>     Copyright (C) 2013 Free Software Foundation, Inc.
>>     License GPLv3+: GNU GPL version 3 or later <
>> http://gnu.org/licenses/gpl.html>
>>
>>     This is free software; you are free to change and redistribute it.
>>     There is NO WARRANTY, to the extent permitted by law.
>>
>
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to