This will cause the build to fail if double curly braces are in
JJB output XML. This should help catch the JJB bug that adds
curly braces when using !include-raw-escape.
Issue: RELENG-777
Change-Id: Iaf9a9ef695229fa24dfc639ca60a4b9a9928a234
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
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"