Add walkthrough test and log build exceptions
This commit is contained in:
+12
-5
@@ -494,6 +494,13 @@ def examplesfullTest( vm, prompt=Prompt ):
|
|||||||
vm.sendline( 'sudo python ~/mininet/examples/test/runner.py -v' )
|
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 ):
|
def checkOutBranch( vm, branch, prompt=Prompt ):
|
||||||
vm.sendline( 'cd ~/mininet; git fetch; git pull --rebase; git checkout '
|
vm.sendline( 'cd ~/mininet; git fetch; git pull --rebase; git checkout '
|
||||||
+ branch )
|
+ branch )
|
||||||
@@ -846,11 +853,11 @@ def parseArgs():
|
|||||||
print "Unknown build flavor:", flavor
|
print "Unknown build flavor:", flavor
|
||||||
print buildFlavorString()
|
print buildFlavorString()
|
||||||
break
|
break
|
||||||
# try:
|
try:
|
||||||
build( flavor )
|
build( flavor )
|
||||||
# except Exception as e:
|
except Exception as e:
|
||||||
# log( '* BUILD FAILED with exception: ', e )
|
log( '* BUILD FAILED with exception: ', e )
|
||||||
# exit( 1 )
|
exit( 1 )
|
||||||
for image in args.image:
|
for image in args.image:
|
||||||
bootAndRunTests( image, tests=args.test )
|
bootAndRunTests( image, tests=args.test )
|
||||||
if not ( args.depend or args.list or args.clean or args.flavor
|
if not ( args.depend or args.list or args.clean or args.flavor
|
||||||
|
|||||||
Reference in New Issue
Block a user