Revision ca5b0c56 mininet/test/runner.py

View differences:

mininet/test/runner.py
11 11
import sys
12 12
from mininet.util import ensureRoot
13 13
from mininet.clean import cleanup
14
from mininet.log import setLogLevel
14 15

  
15 16
def runTests( testDir, verbosity=1 ):
16 17
    "discover and run all tests in testDir"
......
23 24
    unittest.TextTestRunner( verbosity=verbosity ).run( testSuite )
24 25

  
25 26
if __name__ == '__main__':
27
    setLogLevel( 'warning' )
26 28
    # get the directory containing example tests
27 29
    testDir = os.path.dirname( os.path.realpath( __file__ ) )
28 30
    verbosity = 2 if '-v' in sys.argv else 1

Also available in: Unified diff