summaryrefslogtreecommitdiff
path: root/servergreps
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-10-05 19:00:06 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-05 19:00:06 +0300
commit3d272a1a01c8e886af9cbd000626f884ba40726a (patch)
tree6994fda63fe4b8951c64571aee2ff2531ef02962 /servergreps
parent999942d8f0434270adb9954eab4a8026f5e7c2e8 (diff)
downloadevol-tools-3d272a1a01c8e886af9cbd000626f884ba40726a.tar.gz
evol-tools-3d272a1a01c8e886af9cbd000626f884ba40726a.tar.bz2
evol-tools-3d272a1a01c8e886af9cbd000626f884ba40726a.tar.xz
evol-tools-3d272a1a01c8e886af9cbd000626f884ba40726a.zip
servergreps: extend reports from comparing tables packets.
Diffstat (limited to 'servergreps')
-rwxr-xr-xservergreps/hercules/src/reporter.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/servergreps/hercules/src/reporter.py b/servergreps/hercules/src/reporter.py
index 23f5917..ddaec38 100755
--- a/servergreps/hercules/src/reporter.py
+++ b/servergreps/hercules/src/reporter.py
@@ -315,7 +315,7 @@ class Reporter:
return
with open(self.packetDir + "/" + hercules.reportName + "_" + tables.dirName + "_inpackets.txt", "w") as w:
for packet in tables.inPacketsSorted:
- if packet not in hercules.inPacketsSorted:
+ if packet not in hercules.inPacketsSorted and packet not in hercules.outPacketsSorted:
w.write("Exists only in " + tables.dirName + ": " + packet + "\n")
for packet in tables.inPacketsSorted:
if packet in hercules.inPacketsSorted and packet in tables.inPackets and packet in hercules.knownLenPackets:
@@ -332,3 +332,11 @@ class Reporter:
w.write("Exists only in Hercules: " + packet + "\n");
if fail == False:
w.write("Table include all hercules packets\n")
+ with open(self.packetDir + "/" + tables.dirName + "_" + hercules.reportName + "_outpackets.txt", "w") as w:
+ fail = False
+ for packet in hercules.outPacketsSorted:
+ if packet not in tables.inPackets:
+ fail = True
+ w.write("Exists only in Hercules: " + packet + "\n");
+ if fail == False:
+ w.write("Server include all hercules packets\n")