Update expected tshark output in portLat and switchLat tests
Change-Id: Ib7ba52ac919fe08e527efb3d9c0aeac0f22bc5bf
(cherry picked from commit 2eda181ca05a5e4d7fa348a1cbe6b15180acbf67)
diff --git a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
index b9463c2..4c26b59 100644
--- a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
+++ b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
@@ -59,7 +59,7 @@
package: Package String
"""
- pacakge = package.split( " " )
+ pacakge = package.strip().split( " " )
dic = {}
for s in pacakge:
try:
@@ -101,7 +101,7 @@
for term in keyTerm:
if term in line:
# Exclude non-openflow FIN packets
- if term == "[FIN, ACK]" and "openflow" not in line:
+ if term == "[FIN, ACK]" and "6653" not in line:
continue
path = '/tmp/Tshark_' + str( keyTerm[ term ] )
with open( path, 'a' ) as outputfile: