diff --git a/molecule/aws/templates/junit.xml.j2 b/molecule/aws/templates/junit.xml.j2 index 448b2a83da..ac1442cceb 100644 --- a/molecule/aws/templates/junit.xml.j2 +++ b/molecule/aws/templates/junit.xml.j2 @@ -1,8 +1,8 @@ - - + + {{ item.result.stdout|striptags }} {{ item.result.stderr|striptags }} -{% if item.result|failed %}{% endif %} +{% if item.result|failed %}{{ item.result.stderr|striptags }}{% endif %}