From 2f020ef9441d3eec8f0d517fe9f3412df1bfb8d5 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 5 Feb 2018 12:18:22 -0500 Subject: [PATCH] Fix tool stdio level parsing for OOM level. Backend was enhanced to allow this in #5196 and a new entry point to setting exit code for such exit conditions but the custom parsing wasn't updated to allow it. Thanks to @nsoranzo for the catch. --- lib/galaxy/tools/parser/xml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/tools/parser/xml.py b/lib/galaxy/tools/parser/xml.py index 86f932b2318..6edce860323 100644 --- a/lib/galaxy/tools/parser/xml.py +++ b/lib/galaxy/tools/parser/xml.py @@ -857,6 +857,8 @@ class StdioParser(object): return_level = StdioErrorLevel.LOG elif (re.search("warning", err_level, re.IGNORECASE)): return_level = StdioErrorLevel.WARNING + elif (re.search("fatal_oom", err_level, re.IGNORECASE)): + return_level = StdioErrorLevel.FATAL_OOM elif (re.search("fatal", err_level, re.IGNORECASE)): return_level = StdioErrorLevel.FATAL else: