Fix interation number in port and switch latency test
Change-Id: I40ee71142329ab96d24ec39375015d9498ee6634
diff --git a/TestON/tests/SCPF/SCPFportLat/SCPFportLat.py b/TestON/tests/SCPF/SCPFportLat/SCPFportLat.py
index c1dd9cc..f5edd3e 100644
--- a/TestON/tests/SCPF/SCPFportLat/SCPFportLat.py
+++ b/TestON/tests/SCPF/SCPFportLat/SCPFportLat.py
@@ -150,10 +150,10 @@
resultDict[ d ][ 'node' + str( i ) ][ 'PtoD' ] = []
resultDict[ d ][ 'node' + str( i ) ][ 'DtoL' ] = []
resultDict[ d ][ 'node' + str( i ) ][ 'LtoG' ] = []
- for i in range( 1, main.sampleSize + main.warmUp ):
+ for i in range( 0, main.sampleSize + main.warmUp ):
main.log.info( "==========================================" )
- main.log.info( "================iteration:{}==============".format( str ( i ) ) )
- if i > main.warmUp:
+ main.log.info( "================iteration:{}==============".format( str ( i + 1 ) ) )
+ if i >= main.warmUp:
# Portdown iteration
main.portFunc.capturePortStatusPack( main,
main.device,