Updating hwintf test to call host.stop()
host.terminate() does not remove the interfaces
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ before_install:
|
||||
- sudo apt-get install -qq vlan
|
||||
|
||||
install:
|
||||
- sudo util/install.sh -a
|
||||
- sudo util/install.sh -fnvw
|
||||
|
||||
script:
|
||||
- sudo mn --test pingall
|
||||
|
||||
@@ -57,8 +57,8 @@ class testHwintf( unittest.TestCase ):
|
||||
p.wait()
|
||||
|
||||
def tearDown( self ):
|
||||
self.h3.terminate()
|
||||
self.n0.terminate()
|
||||
self.h3.stop( deleteIntfs=True )
|
||||
self.n0.stop( deleteIntfs=True )
|
||||
|
||||
if __name__ == '__main__':
|
||||
setLogLevel( 'warning' )
|
||||
|
||||
Reference in New Issue
Block a user