diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-07-24 13:11:47 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:00 -0800 |
commit | 7ae94d0ae9bad023fb1b42aa8e3ca8375a29be01 (patch) | |
tree | 68a66f8d414da7a81e78a547de5bf8e9975eda7c /mpm/python | |
parent | 91e00cec8bd3edfda288c6f61e30e210453a4f46 (diff) | |
download | uhd-7ae94d0ae9bad023fb1b42aa8e3ca8375a29be01.tar.gz uhd-7ae94d0ae9bad023fb1b42aa8e3ca8375a29be01.tar.bz2 uhd-7ae94d0ae9bad023fb1b42aa8e3ca8375a29be01.zip |
n3xx bist: Make sure error_msg is in every result
Some downstream consumers of n3xx_bist output require the error_msg key
to be in every result, even if no error occurred. The default value is
an empty string.
Diffstat (limited to 'mpm/python')
-rwxr-xr-x | mpm/python/n3xx_bist | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mpm/python/n3xx_bist b/mpm/python/n3xx_bist index 99c1706cb..a6740b51a 100755 --- a/mpm/python/n3xx_bist +++ b/mpm/python/n3xx_bist @@ -114,6 +114,7 @@ class N310BIST(object): try: status, data = getattr(self, testmethod_name)() data['status'] = status + data['error_msg'] = data.get('error_msg', '') return status, data except AttributeError: sys.stderr.write("Test not defined: {}\n".format(testname)) |