From 3d272a1a01c8e886af9cbd000626f884ba40726a Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Wed, 5 Oct 2016 19:00:06 +0300
Subject: servergreps: extend reports from comparing tables packets.

---
 servergreps/hercules/src/reporter.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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")
-- 
cgit v1.2.3-70-g09d2