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:
1 parent
0847991030
commit
77c473687e
1 file changed
+1
@@ -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' )
|
||||
|
||||
Reference in new issue
Block a user