From 438f15dae84c80f577a3fd4fead1a38a9fe10573 Mon Sep 17 00:00:00 2001 From: David Diaz Barquero Date: Tue, 18 Sep 2018 14:39:15 -0600 Subject: [PATCH] fix: usr: Memecheck stack might be a list According to the xml schema https://github.com/tbert/vigilante/blob/master/data/xmlschemas/valgrind-memcheck-xml-output.xsd#L122, stack has an unbounded max attributes. To have one single data type, force it to always be parsed as a list. --- lib/flowbber/plugins/sources/valgrind/memcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flowbber/plugins/sources/valgrind/memcheck.py b/lib/flowbber/plugins/sources/valgrind/memcheck.py index b7a1826..160385d 100644 --- a/lib/flowbber/plugins/sources/valgrind/memcheck.py +++ b/lib/flowbber/plugins/sources/valgrind/memcheck.py @@ -201,7 +201,7 @@ def collect(self): 'No such file {}'.format(infile) ) - doc = parse(infile.read_text(), force_list=('error',)) + doc = parse(infile.read_text(), force_list=('error', 'stack',)) return doc['valgrindoutput']