diff options
author | Klement Sekera <klement.sekera@gmail.com> | 2023-08-17 19:38:34 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-08-17 17:24:56 -0400 |
commit | c5fa5391ed04ec1d18129792dc38524f81a7b6e1 (patch) | |
tree | 136880d9e6b4b699699d67c46847df78465accd3 /test/asf | |
parent | 737edea328d701e33cde6ad9601e546ded6dd08f (diff) |
tests: more descriptive error message
Type: improvement
Change-Id: Icf8a5dc711e1e11ec919b515d7af2f487a1c04c2
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test/asf')
-rw-r--r-- | test/asf/asfframework.py | 6 |
1 files changed, 5 insertions, 1 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) |