Wait for exit in testWireshark()

If mn doesn't shut down cleanly, the subsequent test may fail.
This commit is contained in:
Bob Lantz
2016-09-23 16:07:12 -07:00
parent f012dac2cb
commit 4178333174
+2
View File
@@ -47,6 +47,8 @@ class testWalkthrough( unittest.TestCase ):
mn.expect( '0% dropped' )
tshark.expect( [ '74 Hello', '74 of_hello', '74 Type: OFPT_HELLO' ] )
tshark.sendintr()
mn.expect( pexpect.EOF )
tshark.expect( pexpect.EOF )
def testBasic( self ):
"Test basic CLI commands (help, nodes, net, dump)"