From 326db63a6819813db55ba0d01ab4fe80f7a0d818 Mon Sep 17 00:00:00 2001 From: stickies-v Date: Fri, 23 Jun 2023 12:00:39 +0100 Subject: [PATCH] test: log sanity check assertion failures --- test/functional/interface_usdt_utxocache.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/functional/interface_usdt_utxocache.py b/test/functional/interface_usdt_utxocache.py index aa4216942d0..2fc5981451c 100755 --- a/test/functional/interface_usdt_utxocache.py +++ b/test/functional/interface_usdt_utxocache.py @@ -353,9 +353,13 @@ class UTXOCacheTracepointTest(BitcoinTestFramework): "size": event.size }) # sanity checks only - assert event.memory > 0 - assert event.duration > 0 - handle_flush_succeeds += 1 + try: + assert event.memory > 0 + assert event.duration > 0 + except AssertionError: + self.log.exception("Assertion error") + else: + handle_flush_succeeds += 1 bpf["utxocache_flush"].open_perf_buffer(handle_utxocache_flush)