cleaned up and commented test_nat.py; added check for connectivity before running test

This commit is contained in:
Brian O'Connor
2013-09-11 14:45:48 -07:00
parent cdd5210bb7
commit b9b1f2e7f0
2 changed files with 10 additions and 22 deletions
+1 -1
View File
@@ -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: