Skip to content
Snippets Groups Projects
Commit b7548e68 authored by Bob Lantz's avatar Bob Lantz
Browse files

Add walkthrough test and log build exceptions

parent 2f3e8c2b
No related branches found
No related tags found
No related merge requests found
......@@ -494,6 +494,13 @@ def examplesfullTest( vm, prompt=Prompt ):
vm.sendline( 'sudo python ~/mininet/examples/test/runner.py -v' )
def walkthroughTest( vm, prompt=Prompt ):
"Test mininet walkthrough"
vm.sendline( 'sudo apt-get install python-pexpect' )
vm.expect( prompt )
vm.sendline( 'sudo python ~/mininet/test/test_walkthrough.py -v' )
def checkOutBranch( vm, branch, prompt=Prompt ):
vm.sendline( 'cd ~/mininet; git fetch; git pull --rebase; git checkout '
+ branch )
......@@ -846,11 +853,11 @@ def parseArgs():
print "Unknown build flavor:", flavor
print buildFlavorString()
break
# try:
build( flavor )
# except Exception as e:
# log( '* BUILD FAILED with exception: ', e )
# exit( 1 )
try:
build( flavor )
except Exception as e:
log( '* BUILD FAILED with exception: ', e )
exit( 1 )
for image in args.image:
bootAndRunTests( image, tests=args.test )
if not ( args.depend or args.list or args.clean or args.flavor
......
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