From db9bc02cd78d8f8fc587aa0190ab4f0a647edd70 Mon Sep 17 00:00:00 2001 From: Mark Feit Date: Mon, 27 May 2024 19:16:37 +0000 Subject: [PATCH] Fetch reverse throughput from other participant in reverse tests. #1411 --- pscheduler-tool-iperf3/iperf3/merged-results | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pscheduler-tool-iperf3/iperf3/merged-results b/pscheduler-tool-iperf3/iperf3/merged-results index fac474d2ce..902a7f7735 100755 --- a/pscheduler-tool-iperf3/iperf3/merged-results +++ b/pscheduler-tool-iperf3/iperf3/merged-results @@ -38,6 +38,10 @@ final_results = source_results if input['test']['spec'].get('reverse') and not (single_ended or loopback): final_results = dest_results + # This has to be copied in manually since the 'source' side in a reverse + # test is the receiver. + final_results['summary']['summary']['receiver-throughput-bits'] \ + = source_results['summary']['summary']['receiver-throughput-bits'] # it's possible one could come back as null, ensure we have the right type if not final_results: