diff options
author | sugandhagupta <sugandha.gupta@ettus.com> | 2018-03-06 11:17:19 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-03-06 12:04:08 -0800 |
commit | 38a7bcbff496ad1097c158ae1ba847abeab6d144 (patch) | |
tree | 20d4db7955e7ee1c275d06f87c2ca2710156d1ff /mpm/python/n3xx_bist | |
parent | 1efa4cc8d7b80ebbcf2c04ff1114d24efdf015e2 (diff) | |
download | uhd-38a7bcbff496ad1097c158ae1ba847abeab6d144.tar.gz uhd-38a7bcbff496ad1097c158ae1ba847abeab6d144.tar.bz2 uhd-38a7bcbff496ad1097c158ae1ba847abeab6d144.zip |
n3xx_bist: Ignore errors from uhd_usrp_probe on running ddr3 test
we only care about getting a valid throughput regex match, and can
ignore errors from uhd_usrp_probe, e.g. no daughterboards, etc.
Diffstat (limited to 'mpm/python/n3xx_bist')
-rwxr-xr-x | mpm/python/n3xx_bist | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mpm/python/n3xx_bist b/mpm/python/n3xx_bist index 00732a6c3..90764ea06 100755 --- a/mpm/python/n3xx_bist +++ b/mpm/python/n3xx_bist @@ -412,13 +412,11 @@ class N3XXBIST(object): ddr3_bist_executor, stderr=subprocess.STDOUT, shell=True, - ).decode("utf-8") + ) except subprocess.CalledProcessError as ex: - sys.stderr.write("Calling `{}' failed with return code {}.\n".format( - ddr3_bist_executor, ex.returncode - )) - result['error_msg'] = ex.output + # Don't throw errors from uhd_usrp_probe output = ex.output + output = output.decode("utf-8") mobj = re.search(r"Throughput: (?P<thrup>[0-9.]+)\s?MB", output) if mobj is not None: result['throughput'] = float(mobj.group('thrup')) * 1000 |