From 2b15ecde2b2810bdb64c2244db9de3133f1763b0 Mon Sep 17 00:00:00 2001
From: Martin Braun <martin.braun@ettus.com>
Date: Tue, 21 Aug 2018 09:56:49 -0700
Subject: devtest: Fix counting of underruns/overruns

Our regex was borked.
---
 host/tests/devtest/benchmark_rate_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'host')

diff --git a/host/tests/devtest/benchmark_rate_test.py b/host/tests/devtest/benchmark_rate_test.py
index 1548b795c..da7aacd36 100755
--- a/host/tests/devtest/benchmark_rate_test.py
+++ b/host/tests/devtest/benchmark_rate_test.py
@@ -76,7 +76,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case):
             run_results['rel_rx_samples_error'] = 100
         match = re.search(r'(Num dropped samples):\s*(.*)', app.stdout)
         run_results['num_rx_dropped'] = int(match.group(2)) if match else -1
-        match = re.search(r'(Num overflows detected):\s*(.*)', app.stdout)
+        match = re.search(r'(Num overruns detected):\s*(.*)', app.stdout)
         run_results['num_rx_overruns'] = int(match.group(2)) if match else -1
         match = re.search(r'(Num transmitted samples):\s*(.*)', app.stdout)
         run_results['num_tx_samples'] = int(match.group(2)) if match else -1
@@ -90,7 +90,7 @@ class uhd_benchmark_rate_test(uhd_example_test_case):
             run_results['rel_tx_samples_error'] = 100
         match = re.search(r'(Num sequence errors \(Tx\)):\s*(.*)', app.stdout)
         run_results['num_tx_seqerrs'] = int(match.group(2)) if match else -1
-        match = re.search(r'(Num underflows detected):\s*(.*)', app.stdout)
+        match = re.search(r'(Num underruns detected):\s*(.*)', app.stdout)
         run_results['num_tx_underruns'] = int(match.group(2)) if match else -1
         match = re.search(r'(Num timeouts \(Rx\)):\s*(.*)', app.stdout)
         run_results['num_timeouts_rx'] = int(match.group(2)) if match else -1
-- 
cgit v1.2.3