From 0b2d8461fd432e4f148aa2691666797aae1ee658 Mon Sep 17 00:00:00 2001 From: Brian O'Connor Date: Thu, 12 Jan 2017 15:49:24 -0800 Subject: [PATCH] Updating hwintf test to call host.stop() host.terminate() does not remove the interfaces --- .travis.yml | 2 +- examples/test/test_hwintf.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2cdb569..a3fc107 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/examples/test/test_hwintf.py b/examples/test/test_hwintf.py index aafd643..843fc40 100755 --- a/examples/test/test_hwintf.py +++ b/examples/test/test_hwintf.py @@ -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' )