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.
This commit is contained in:
lantz authored and GitHub committed 2021-01-05 17:01:35 -08:00
1 parent 0847991030
commit 77c473687e
1 file changed
+1
+1
View File
@@ -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' )