diff --git a/src/Microsoft.DotNet.Helix/Sdk/tools/azure-pipelines/reporter/formats/xunit.py b/src/Microsoft.DotNet.Helix/Sdk/tools/azure-pipelines/reporter/formats/xunit.py
index 0a5d09da677..b46a11f1964 100644
--- a/src/Microsoft.DotNet.Helix/Sdk/tools/azure-pipelines/reporter/formats/xunit.py
+++ b/src/Microsoft.DotNet.Helix/Sdk/tools/azure-pipelines/reporter/formats/xunit.py
@@ -24,7 +24,7 @@ def bs(match):
sym = grp[1]
if sym == 'x':
return chr(int(grp[2:], 16))
- return _unescape_char_map.get(match[0][1]) or sym
+ return _unescape_char_map.get(match.group(0)[1]) or sym
return re.sub(r'\\x[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]?[0-9a-fA-F]?|\\[^x]', bs, value)
class XUnitFormat(ResultFormat):
diff --git a/tests/UnitTests.proj b/tests/UnitTests.proj
index a5a1a709a07..e1f2e16a924 100644
--- a/tests/UnitTests.proj
+++ b/tests/UnitTests.proj
@@ -46,6 +46,17 @@
+
+
+ echo 'done!'
+ $(MSBuildThisFileDirectory)XUnit
+
+
+
+
+
+
+
diff --git a/tests/XUnit/testResults.xml b/tests/XUnit/testResults.xml
new file mode 100644
index 00000000000..960c5d56442
--- /dev/null
+++ b/tests/XUnit/testResults.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file