Skip to content
Snippets Groups Projects
Commit fc2a8fd5 authored by Brian O'Connor's avatar Brian O'Connor
Browse files

fixed git download for testRemoteController in test_walkthrough.py

parent 47b24beb
No related branches found
No related tags found
No related merge requests found
......@@ -313,12 +313,14 @@ def testLink( self ):
p.sendline( 'exit' )
p.wait()
@unittest.skipUnless( '1 received' in quietRun( 'ping -c 1 github.com' ),
@unittest.skipUnless( os.path.exists( '/tmp/pox' ) or
'1 received' in quietRun( 'ping -c 1 github.com' ),
'Github is not reachable; cannot download Pox' )
def testRemoteController( self ):
"Test Mininet using Pox controller"
p = pexpect.spawn( 'test ! -d /tmp/pox && git clone https://github.com/noxrepo/pox.git /tmp/pox')
p.wait()
if not os.path.exists( '/tmp/pox' ):
p = pexpect.spawn( 'git clone https://github.com/noxrepo/pox.git /tmp/pox' )
p.expect( pexpect.EOF )
pox = pexpect.spawn( '/tmp/pox/pox.py forwarding.l2_learning' )
net = pexpect.spawn( 'mn --controller=remote,ip=127.0.0.1,port=6633 --test pingall' )
net.expect( '0% dropped' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment