aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/n3xx_bist
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-02-07 08:21:06 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-07 08:21:06 -0800
commit31f9d3dce799ce86c903dd3e377d3f4038086ef7 (patch)
treeb466ec1da1b3b50aa18ed2c57b264a17742ec77e /mpm/python/n3xx_bist
parent901c45de237df42277e870f461cf9c6f108ae068 (diff)
downloaduhd-31f9d3dce799ce86c903dd3e377d3f4038086ef7.tar.gz
uhd-31f9d3dce799ce86c903dd3e377d3f4038086ef7.tar.bz2
uhd-31f9d3dce799ce86c903dd3e377d3f4038086ef7.zip
mpm: n310: bist: Add error_msg for temp bist if no sensores were found
Diffstat (limited to 'mpm/python/n3xx_bist')
-rwxr-xr-xmpm/python/n3xx_bist4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpm/python/n3xx_bist b/mpm/python/n3xx_bist
index df3d37a4e..ba3a104e8 100755
--- a/mpm/python/n3xx_bist
+++ b/mpm/python/n3xx_bist
@@ -721,7 +721,9 @@ class N310BIST(object):
if 'temp' in device.attributes.available_attributes \
and device.attributes.get('temp') is not None
}
- return len(result) >= 1, result
+ if len(result) < 1:
+ result['error_msg'] = "No temperature sensors found!"
+ return 'error_msg' not in result, result
def bist_fan(self):
"""