From 9c7d251b32eb476e11f8fce13a797c4de9abc796 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 21 Aug 2018 09:43:20 -0700 Subject: devtest: Remove parsing for DD.. and SS.. Detecting drops by parsing for DD and SS was a flawed method. Tools should find those programmatically. Plus, the string 'DDC' would interfere with the regex. Also, we're now using UHD_LOG_FASTPATH_DISABLE. --- host/tests/devtest/uhd_test_base.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'host/tests/devtest/uhd_test_base.py') diff --git a/host/tests/devtest/uhd_test_base.py b/host/tests/devtest/uhd_test_base.py index 71e652459..a1fd8216e 100755 --- a/host/tests/devtest/uhd_test_base.py +++ b/host/tests/devtest/uhd_test_base.py @@ -38,22 +38,12 @@ def filter_stderr(stderr, run_results=None): """ Filters the output to stderr. run_results[] is a dictionary. This function will: - - Remove UUUUU... strings, since they are generally not a problem. - - Remove all DDDD and SSSS strings, and add run_results['has_S'] = True - and run_results['has_D'] = True. - Remove warnings and put them in run_results['warnings'] - Put the filtered error string into run_results['errors'] and returns the dictionary """ run_results = run_results or {} errstr, run_results['warnings'] = filter_warnings(stderr) # Scan for underruns and sequence errors / dropped packets not detected in the counter - errstr = re.sub('UU+', '', errstr) - (errstr, n_subs) = re.subn('SS+', '', errstr) - if n_subs: - run_results['has_S'] = True - (errstr, n_subs) = re.subn('DD+', '', errstr) - if n_subs: - run_results['has_D'] = True errstr = re.sub("\n\n+", "\n", errstr) run_results['errors'] = errstr.strip() return run_results @@ -205,8 +195,6 @@ class uhd_example_test_case(uhd_test_case): run_results = { 'return_code': app.returncode, 'passed': False, - 'has_D': False, - 'has_S': False, } run_results = filter_stderr(app.stderr, run_results) self.log.info('STDERR Output:') -- cgit v1.2.3