summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-19 03:02:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-19 22:52:13 +0300
commit59b06bd0e6054ee42e4fb159b8ef44a50d3fb720 (patch)
tree82221992eee31390838379c1a4b99a9ce921899b
parente76a4ba3be73a740f5a903a7b905811252843cb4 (diff)
downloadevol-tools-59b06bd0e6054ee42e4fb159b8ef44a50d3fb720.tar.gz
evol-tools-59b06bd0e6054ee42e4fb159b8ef44a50d3fb720.tar.bz2
evol-tools-59b06bd0e6054ee42e4fb159b8ef44a50d3fb720.tar.xz
evol-tools-59b06bd0e6054ee42e4fb159b8ef44a50d3fb720.zip
servergreps: detect if packet exists only in hercules fork but not have correct len.
-rwxr-xr-xservergreps/hercules/src/reporter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/servergreps/hercules/src/reporter.py b/servergreps/hercules/src/reporter.py
index af05a65..87be910 100755
--- a/servergreps/hercules/src/reporter.py
+++ b/servergreps/hercules/src/reporter.py
@@ -235,7 +235,10 @@ class Reporter:
with open(self.packetDir + "/" + hercules.reportName + "_" + fork.reportName + "_outpackets.txt", "w") as w:
for packet in fork.outPacketsSorted:
if packet not in hercules.packetsSet:
- w.write("Exists only in " + name + ": " + packet + "\n")
+ if packet in fork.getLenPackets and packet not in fork.knownLenPackets:
+ w.write("Exists only in " + name + ", but missing packet size: " + packet + "\n")
+ else:
+ w.write("Exists only in " + name + ": " + packet + "\n")
with open(self.packetDir + "/" + hercules.reportName + "_" + fork.reportName + "_inpackets.txt", "w") as w:
for packet in fork.inPacketsSorted:
if packet not in hercules.inPackets: