We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc3eee7 commit e39e127Copy full SHA for e39e127
tests/run-make/libtest-junit/validate_junit.py
@@ -13,10 +13,10 @@
13
import sys
14
import xml.etree.ElementTree as ET
15
16
-# Try to decode line in order to ensure it is a valid XML document
17
-for line in sys.stdin:
18
- try:
19
- ET.fromstring(line)
20
- except ET.ParseError:
21
- print("Invalid xml: %r" % line)
22
- raise
+# Read the entire output and try to decode it as XML.
+junit = sys.stdin.read()
+try:
+ ET.fromstring(junit)
+except ET.ParseError:
+ print("Invalid xml: %r" % junit)
+ raise
0 commit comments