From 037294dc3b37469cb4d25deb9d463d4a41d59111 Mon Sep 17 00:00:00 2001 From: Leon Schuermann Date: Thu, 9 Sep 2021 15:29:22 +0200 Subject: [PATCH] test_packet.py: support passing debug_print parameter --- test/test_packet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_packet.py b/test/test_packet.py index a54ef2bc6..9349134ee 100644 --- a/test/test_packet.py +++ b/test/test_packet.py @@ -39,7 +39,7 @@ def raw_description(dw): class TestPacket(unittest.TestCase): - def loopback_test(self, dw, seed=42, with_last_be=False): + def loopback_test(self, dw, seed=42, with_last_be=False, debug_print=False): prng = random.Random(seed) # Prepare packets npackets = 8 @@ -72,6 +72,7 @@ class TestPacket(unittest.TestCase): dut.sink, src=packets, seed=seed, + debug_print=debug_print, valid_rand=50, ), stream_collector( @@ -79,6 +80,7 @@ class TestPacket(unittest.TestCase): dest=recvd_packets, expect_npackets=npackets, seed=seed, + debug_print=debug_print, ready_rand=50, ), ],