def METHOD_NAME(self):
    cmd_line = (
        f"{AVOCADO} run examples/tests/errortest.py "
        f"--job-results-dir {self.tmpdir.name} --disable-sysinfo"
    )
    process.run(cmd_line, ignore_status=True)
    xunit_path = path.join(self.tmpdir.name, "latest", "results.xml")
    with open(xunit_path, "rb") as fp:
        xml = fp.read()
    try:
        dom = minidom.parseString(xml)
    except Exception as details:
        raise ValueError(f"Error parsing XML: '{details}'.\nXML Contents:\n{xml}")
    self.assertTrue(dom)
    els = dom.getElementsByTagName("error")
    self.assertEqual(len(els), 1)
    self.assertEqual(els[0].attributes["type"].value, "TestError")
    self.assertEqual(
        els[0].attributes["message"].value, "This should end with ERROR."
    )
    for child in els[0].childNodes:
        if child.nodeType is child.CDATA_SECTION_NODE:
            self.assertIn("Traceback (most recent call last):", child.nodeValue)