cleaned up and commented test_nat.py; added check for connectivity before running test
This commit is contained in:
@@ -15,7 +15,7 @@ class testMultiTest( unittest.TestCase ):
|
||||
"Verify pingall (0% dropped) and hX-eth0 interface for each host (ifconfig)"
|
||||
p = pexpect.spawn( 'python -m mininet.examples.multitest' )
|
||||
p.expect( '(\d+)% dropped' )
|
||||
dropped = int( p.match.group(1) )
|
||||
dropped = int( p.match.group( 1 ) )
|
||||
self.assertEqual( dropped, 0 )
|
||||
ifCount = 0
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user