Fix typo in log_parser.py
authorPyry Haulos <phaulos@google.com>
Thu, 17 Nov 2016 23:25:05 +0000 (15:25 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 17 Nov 2016 23:25:05 +0000 (15:25 -0800)
This would lead to an error if log parsing fails.

Change-Id: Id88cb7332541f25cd08facf50dc70ea8db17f6c9

scripts/log/log_parser.py

index 8740397..17e1311 100644 (file)
@@ -170,7 +170,7 @@ class BatchResultParser:
                        statusCode              = resultItems[0].getAttributeNode('StatusCode').nodeValue
                        statusDetails   = getNodeText(resultItems[0])
                except Exception as e:
-                       statusCode              = TestStatusCode.INTERNAL_ERROR
+                       statusCode              = StatusCode.INTERNAL_ERROR
                        statusDetails   = "XML parsing failed: %s" % str(e)
 
                self.testCaseResults.append(TestCaseResult(name, statusCode, statusDetails, log))