From 4178333174f8908686b26a44df4f25f600a0d8c6 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Fri, 23 Sep 2016 16:07:12 -0700 Subject: [PATCH] Wait for exit in testWireshark() If mn doesn't shut down cleanly, the subsequent test may fail. --- mininet/test/test_walkthrough.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mininet/test/test_walkthrough.py b/mininet/test/test_walkthrough.py index 76afffb..466bf28 100755 --- a/mininet/test/test_walkthrough.py +++ b/mininet/test/test_walkthrough.py @@ -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)"