def tearDown(self): super(NetworkLoadTestCase, self).tearDown() # The only engine have to tear down stacks after all workers have done if self.engine: console.terse("Clearing netem rules\n") netem.clear() # clear network emulation rules if netem.check() != 0: console.terse("Error removing netem rules! Check it manually!")
def setUp(self): super(NetworkLoadTestCase, self).setUp() netem.clear() # clear network emulation rules