Add static code checking for style and errors
This required a change to logging, which now uses a singleton pattern. For all future checkins, 'make codecheck' should pass.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
Test creation and all-pairs ping for each included mininet topo type.
|
||||
'''
|
||||
|
||||
from time import sleep
|
||||
import unittest
|
||||
|
||||
from mininet.net import init, Mininet
|
||||
@@ -12,7 +11,7 @@ from mininet.node import KernelSwitch, Host, Controller, ControllerParams
|
||||
from mininet.topo import SingleSwitchTopo, LinearTopo
|
||||
|
||||
# temporary, until user-space side is tested
|
||||
SWITCHES = {'kernel' : KernelSwitch}
|
||||
SWITCHES = {'kernel': KernelSwitch}
|
||||
|
||||
|
||||
class testSingleSwitch(unittest.TestCase):
|
||||
@@ -54,4 +53,4 @@ class testLinear(unittest.TestCase):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user