[ovs-dev] [test-kmod improvements 1/6] test: remove namespace after ovs-vswitchd is stopped

Joe Stringer joestringer at nicira.com
Fri Feb 6 22:36:53 UTC 2015


On 6 February 2015 at 14:33, Ben Pfaff <blp at nicira.com> wrote:
> On Fri, Feb 06, 2015 at 02:31:00PM -0800, Joe Stringer wrote:
>> On 5 February 2015 at 16:06, Andy Zhou <azhou at nicira.com> wrote:
>> If we apply the same to the OVS test case here, then
>> this means that the namespaces will not be cleaned up if the test
>> fails. What I've done in private testing is to modify the
>> ADD_NAMESPACES() macro to add the DEL_NAMESPACES commands to the end
>> of the "cleanup" file, which appears to be invoked through AT_CLEANUP.
>
> That's probably the right approach for anything that really needs to
> get cleaned up.  (You can use the ON_EXIT macro to do this.)

Turns out that I just didn't read far enough into the patchset; this
is exactly what Andy does.



More information about the dev mailing list