From f012dac2cbbc7fdc7a752d33d134246b76bea9ad Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 21 Sep 2016 13:25:04 -0700 Subject: [PATCH] Clean shutdown for testStaticMAC Without waiting for mn to exit, OVS keeps listening on the static listening port, which prevents UserSwitch from listening on it (and starting up) in the next test. --- 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 e2f18cb..76afffb 100755 --- a/mininet/test/test_walkthrough.py +++ b/mininet/test/test_walkthrough.py @@ -253,6 +253,8 @@ class testWalkthrough( unittest.TestCase ): p.sendline( 'h%d ifconfig' % i ) p.expect( 'HWaddr 00:00:00:00:00:0%d' % i ) p.expect( self.prompt ) + p.sendline( 'exit' ) + p.expect( pexpect.EOF ) def testSwitches( self ): "Run iperf test using user and ovsk switches"