From 77c473687e1acff1c7a1fddf71990ef84bf65dd0 Mon Sep 17 00:00:00 2001 From: lantz Date: Tue, 5 Jan 2021 17:01:35 -0800 Subject: [PATCH] Wait for exit to avoid leftover dp0 (#1002) In certain cases, dp0 and its interfaces were not being cleaned up, probably due to scratchnet.py being killed before it terminated. This in turn caused the natnet test to fail. --- examples/test/test_scratchnet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/test/test_scratchnet.py b/examples/test/test_scratchnet.py index 3d44955..7facc0f 100755 --- a/examples/test/test_scratchnet.py +++ b/examples/test/test_scratchnet.py @@ -16,6 +16,7 @@ class testScratchNet( unittest.TestCase ): p = pexpect.spawn( 'python -m %s' % name ) index = p.expect( self.opts, timeout=120 ) self.assertEqual( index, 0 ) + p.wait() def testPingKernel( self ): self.pingTest( 'mininet.examples.scratchnet' )