make test: fix debug print 14/4514/2
authorKlement Sekera <ksekera@cisco.com>
Mon, 2 Jan 2017 09:31:17 +0000 (10:31 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 2 Jan 2017 22:55:42 +0000 (22:55 +0000)
Change-Id: Id31a1a3644bdc245f12f3c9bce211099c5ef48f8
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/vpp_pg_interface.py

index a79af03..2256ada 100644 (file)
@@ -148,7 +148,7 @@ class VppPGInterface(VppInterface):
         before = len(output.res)
         if filter_out_fn:
             output.res = [p for p in output.res if not filter_out_fn(p)]
-        removed = len(output.res) - before
+        removed = before - len(output.res)
         if removed:
             self.test.logger.debug(
                 "Filtered out %s packets from capture (returning %s)" %