X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb-compare-xml.sh;h=740daf3612e48bea4f24ac7f9576c53a63768192;hb=refs%2Fheads%2Fv0.24.x;hp=e29c1fa3c687baa568fb20879537fdedf4b497d3;hpb=3fcd35dc6a2ff7decaa05bacdfa9d2807a6323f5;p=releng%2Fglobal-jjb.git diff --git a/jjb-compare-xml.sh b/jjb-compare-xml.sh index e29c1fa3..740daf36 100755 --- a/jjb-compare-xml.sh +++ b/jjb-compare-xml.sh @@ -42,6 +42,16 @@ for xml in "$test_dir"/*; do fi done +echo "Checking for double curly braces..." +mapfile -t xml_files < <(find "$test_dir" -type f) +for xml in "${xml_files[@]}"; do + if grep '{{' "$xml"; then + echo "ERROR: Double curly braces discovered in output XML." + exit 1 + fi +done +echo "No double curly braces found." + # Cleanup rm -rf "$test_dir" "$expected_xml_dir"