[contrib] validate_failures.py: Fix output of manifests
If we have the same .exp line in the two different "tools",
then we may skip the output of the .exp line if the entries
of two "tools" are processed back-to-back. A missing .exp
line after a "tool" header will make for a corrupted manifest
file, which we will fail to accept as input later.
Change-Id: I965a917228ed2cb54ca14343e210e5ae5989500f
diff --git a/contrib/testsuite-management/validate_failures.py b/contrib/testsuite-management/validate_failures.py
index 4ec5b37..aa450c1 100755
--- a/contrib/testsuite-management/validate_failures.py
+++ b/contrib/testsuite-management/validate_failures.py
@@ -251,6 +251,7 @@
if current_tool != result.tool:
current_tool = result.tool
outfile.write(_TOOL_LINE_FORMAT % current_tool)
+ current_exp = None
if current_exp != result.exp:
current_exp = result.exp
outfile.write(_EXP_LINE_FORMAT % (current_tool, current_exp))