From 7ae94d0ae9bad023fb1b42aa8e3ca8375a29be01 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 24 Jul 2017 13:11:47 -0700 Subject: 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. --- mpm/python/n3xx_bist | 1 + 1 file changed, 1 insertion(+) (limited to 'mpm') 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)) -- cgit v1.2.3