Revision 28165f7b

View differences:

util/vm/build.py
408 408
    log( '* Testing Mininet' )
409 409
    vm.sendline( 'sudo mn --test pingall' )
410 410
    if vm.expect( [ ' 0% dropped', pexpect.TIMEOUT ], timeout=45 ) == 0:
411
        log( '* Sanity check succeeded' )
411
        log( '* Sanity check OK' )
412 412
    else:
413 413
        log( '* Sanity check FAILED' )
414 414
    vm.expect( prompt )
......
419 419
    vm.expect( prompt )
420 420
    log( '* Running make test' )
421 421
    vm.sendline( 'cd ~/mininet; sudo make test' )
422
    # We should change "make test" to report the number of
423
    # successful and failed tests. For now, we have to
424
    # know the time for each test, which means that this
425
    # script will have to change as we add more tests.
426
    for test in range( 0, 2 ):
427
        if vm.expect( [ 'OK', 'FAILED', pexpect.timeout ], timeout=60 ) == 0:
428
            log( '* Test', test, 'OK' )
429
        else:
430
            log( '* Test', test, 'FAILED' )
422 431
    vm.expect( prompt )
423 432
    log( '* Shutting down' )
424 433
    vm.sendline( 'sync; sudo shutdown -h now' )

Also available in: Unified diff