summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/asf/asfframework.py6
-rw-r--r--test/framework.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/test/asf/asfframework.py b/test/asf/asfframework.py
index 37aa2633bae..1214fbfecd2 100644
--- a/test/asf/asfframework.py
+++ b/test/asf/asfframework.py
@@ -1190,7 +1190,11 @@ class VppTestCase(CPUInterface, unittest.TestCase):
c = c[thread][index]
else:
c = sum(x[index] for x in c)
- self.assert_equal(c, expected_value, "counter `%s'" % counter)
+ self.logger.debug(
+ "validate counter `%s[%s]', expected: %s, real value: %s"
+ % (counter, index, expected_value, c)
+ )
+ self.assert_equal(c, expected_value, "counter `%s[%s]'" % (counter, index))
def assert_packet_counter_equal(self, counter, expected_value):
counter_value = self.get_counter(counter)
diff --git a/test/framework.py b/test/framework.py
index 8f9a45b6c3a..dc08ad08d5a 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -1421,7 +1421,11 @@ class VppTestCase(CPUInterface, unittest.TestCase):
c = c[thread][index]
else:
c = sum(x[index] for x in c)
- self.assert_equal(c, expected_value, "counter `%s'" % counter)
+ self.logger.debug(
+ "validate counter `%s[%s]', expected: %s, real value: %s"
+ % (counter, index, expected_value, c)
+ )
+ self.assert_equal(c, expected_value, "counter `%s[%s]'" % (counter, index))
def assert_packet_counter_equal(self, counter, expected_value):
counter_value = self.get_counter(counter)