acl: fix acl-plugin testcases packet counting
Counter checks in ACL tests were incorrect if VPP is running with multiple workers
Type: fix
@@ -538,7 +538,8 @@ class TestACLpluginL2L3(VppTestCase):
matches = self.statistics.get_counter('/acl/%d/matches' % acl_idx)
self.logger.info("stat seg for ACL %d: %s" % (acl_idx, repr(matches)))
total_count = 0
- for p in matches[0]:
+ for m in matches:
+ for p in m:
total_count = total_count + p['packets']
self.assertEqual(total_count, packet_count)
