Skip to content
Snippets Groups Projects
Commit 501eb4f9 authored by Bob Lantz's avatar Bob Lantz
Browse files

Add more information for test condition failure

parent 5eca0802
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,11 @@ def testLinearBandwidth( self ):
bw *= 10 ** 9
# check that we have a previous result to compare to
if n != 1:
self.assertTrue( bw < previous_bw )
previous_bw = bw
info = ( 'bw: %d bits/s across %d switches, '
'previous: %d bits/s across %d switches' %
( bw, n, previous_bw, previous_n ) )
self.assertTrue( bw < previous_bw, info )
previous_bw, previous_n = bw, n
else:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment