Fix encoding the & symbols in pytest xml report
PROD-36050
Change-Id: Id61448a99b11bd4e85705f495d05b4830c5db8b2
diff --git a/src/com/mirantis/system_qa/SharedPipeline.groovy b/src/com/mirantis/system_qa/SharedPipeline.groovy
index 1c6608c..4ff3f68 100644
--- a/src/com/mirantis/system_qa/SharedPipeline.groovy
+++ b/src/com/mirantis/system_qa/SharedPipeline.groovy
@@ -663,7 +663,8 @@
// 'error' status is assumed as 'Blocker' in TestRail reporter
// Replace '<' and '>' to '<' and '>' to avoid conflicts between xml tags in the message and JUnit report
- def String text_filtered = text.replaceAll("<","<").
+ def String text_filtered = text.replaceAll("&", "&").
+ replaceAll("<","<").
replaceAll(">", ">").
replaceAll("[^\\x{0009}\\x{000a}\\x{000d}\\x{0020}-\\x{D7FF}\\x{E000}-\\x{FFFD}]+", "")