Commit dd20daa5 authored by Dylan Baker's avatar Dylan Baker

crucible: if a test has no XML output consider it a crash

Reviewed-by: Juan Suárez Romero's avatarJuan A. Suarez <>
parent 401e4b6a
......@@ -32,7 +32,13 @@ import six
import subprocess
import tempfile
from lxml import etree
except ImportError:
import xml.etree.cElementTree as etree
from framework import grouptools, backends, exceptions
from framework import status
from framework.core import PIGLIT_CONFIG
from framework.profile import TestProfile, Test
......@@ -62,6 +68,10 @@ class CrucibleTest(Test):
result = test.get_result(next(six.iterkeys(test.tests)))
self.result.result =
super(CrucibleTest, self).interpret_result()
except etree.ParseError:
# This error is what cElementTree will generate, and is the parent
# of what lxml will generate.
self.result.result = status.CRASH
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment