From a4b80e7ddb75dee4336cf09deb08fb6aa2347847 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 9 Jun 2022 17:07:44 +0200 Subject: [PATCH] Updated link test --- tests/link.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/link.py b/tests/link.py index 4d8895b..b13a27a 100644 --- a/tests/link.py +++ b/tests/link.py @@ -229,8 +229,9 @@ def resource_profiling(): t = time.time() - start print("Resource completed at "+size_str(resource_size/t, "b")+"ps") - rx_pr = (resource.link.attached_interface.rxb*8)/resource.link.attached_interface.rxptime - print("Average RX proccessing rate: "+size_str(rx_pr, "b")+"ps") + if hasattr(resource.link.attached_interface, "rxptime"): + rx_pr = (resource.link.attached_interface.rxb*8)/resource.link.attached_interface.rxptime + print("Average RX proccessing rate: "+size_str(rx_pr, "b")+"ps") l1.teardown() time.sleep(0.5)