示例#1
0
 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!")
示例#2
0
 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!")
示例#3
0
 def setUp(self):
     super(NetworkLoadTestCase, self).setUp()
     netem.clear()  # clear network emulation rules
示例#4
0
 def setUp(self):
     super(NetworkLoadTestCase, self).setUp()
     netem.clear()  # clear network emulation rules