commit | 112d84c51f304d57b2ec1aa33fce58d4f936b612 | [log] [tgz] |
---|---|---|
author | You Wang <you@opennetworking.org> | Fri Apr 27 15:58:28 2018 -0700 |
committer | You Wang <you@opennetworking.org> | Fri Apr 27 15:58:28 2018 -0700 |
tree | d94d3cef7d285cbd54549412efd6b5bf4ec4fc1b | |
parent | dbf562ccb72b0313ac002d0809e22093b84b7ec1 [diff] |
Fix switchLat test by excluding non-openflow FIN packets Change-Id: I426fa71f1b583de11b2d60e7cbca112265593fff
diff --git a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py index b097166..b9463c2 100644 --- a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py +++ b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
@@ -100,6 +100,9 @@ for line in resultText: for term in keyTerm: if term in line: + # Exclude non-openflow FIN packets + if term == "[FIN, ACK]" and "openflow" not in line: + continue path = '/tmp/Tshark_' + str( keyTerm[ term ] ) with open( path, 'a' ) as outputfile: outputfile.write( line )