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:
Brandon Heller
2010-01-09 17:59:43 -08:00
parent ca58c896dd
commit 723d068c51
11 changed files with 200 additions and 132 deletions
+2 -3
View File
@@ -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()