changed 1% to 2% in test_limit.py
This commit is contained in:
@@ -10,14 +10,14 @@ import pexpect
|
|||||||
class testLimit( unittest.TestCase ):
|
class testLimit( unittest.TestCase ):
|
||||||
|
|
||||||
def testLimit( self ):
|
def testLimit( self ):
|
||||||
"Verify that CPU limits are within a 1% tolerance of limit for each scheduler"
|
"Verify that CPU limits are within a 2% tolerance of limit for each scheduler"
|
||||||
p = pexpect.spawn( 'python -m mininet.examples.limit' )
|
p = pexpect.spawn( 'python -m mininet.examples.limit' )
|
||||||
opts = [ '\*\*\* Testing network ([\d\.]+) Mbps',
|
opts = [ '\*\*\* Testing network ([\d\.]+) Mbps',
|
||||||
'\*\*\* Results: \[([\d\., ]+)\]',
|
'\*\*\* Results: \[([\d\., ]+)\]',
|
||||||
pexpect.EOF ]
|
pexpect.EOF ]
|
||||||
count = 0
|
count = 0
|
||||||
bw = 0
|
bw = 0
|
||||||
tolerance = 1
|
tolerance = 2
|
||||||
while True:
|
while True:
|
||||||
index = p.expect( opts )
|
index = p.expect( opts )
|
||||||
if index == 0:
|
if index == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user