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
2021-01-05 17:01:35 -08:00
committed by GitHub
parent 0847991030
commit 77c473687e
+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' )