diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-02-07 08:21:06 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-07 08:21:06 -0800 |
commit | 31f9d3dce799ce86c903dd3e377d3f4038086ef7 (patch) | |
tree | b466ec1da1b3b50aa18ed2c57b264a17742ec77e /mpm/python/n3xx_bist | |
parent | 901c45de237df42277e870f461cf9c6f108ae068 (diff) | |
download | uhd-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-x | mpm/python/n3xx_bist | 4 |
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): """ |