Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 083A0C61DB8 for ; Tue, 3 Jun 2025 12:42:48 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1004294.1384023 (Exim 4.92) (envelope-from ) id 1uMQyP-00073G-Gh; Tue, 03 Jun 2025 12:42:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1004294.1384023; Tue, 03 Jun 2025 12:42:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uMQyP-00072b-8y; Tue, 03 Jun 2025 12:42:33 +0000 Received: by outflank-mailman (input) for mailman id 1004294; Tue, 03 Jun 2025 12:42:32 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uMQyN-0006oL-W7 for xen-devel@lists.xenproject.org; Tue, 03 Jun 2025 12:42:31 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uMQyN-000CH9-2U; Tue, 03 Jun 2025 12:42:31 +0000 Received: from [2a01:e0a:1da:8420:b77:bd5:6e45:7633] (helo=l14..) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uMQyN-005di7-39; Tue, 03 Jun 2025 12:42:31 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=gLml0ocUwSJxLHe7Tk7Z9KoA979LIAL3NtErmX5LnSE=; b=2I5Za3CgYoKOYiObuMlgKNmGKS krx3VSqpWkfARsq9vWXYLyU0t+Vje1zYt2MiOk/p6yRXDYrWOGAz5zcSQOEcx7DVH4z2s+AatvyYD 7V4Day8f1sxBsXpQQicL374h92smCKNL/nrNjZUeU7PlhQ9SZ+UIjus8dGQJaQCliDWc=; From: Anthony PERARD To: xen-devel@lists.xenproject.org Cc: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , Andrew Cooper , Anthony PERARD , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH 7/9] CI: Use CDATA avoid the need to escape tests outputs Date: Tue, 3 Jun 2025 14:42:20 +0200 Message-Id: <20250603124222.52057-8-anthony@xenproject.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250603124222.52057-1-anthony@xenproject.org> References: <20250603124222.52057-1-anthony@xenproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Anthony PERARD This is easier than escaping individual characters, especially '&' and '<' which are problematic if present. We might still need to escape ']]>' if this string is present in the test output, but hopefully not. Signed-off-by: Anthony PERARD --- automation/scripts/run-tools-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/scripts/run-tools-tests b/automation/scripts/run-tools-tests index 695ed77e46..852c1cfbcf 100755 --- a/automation/scripts/run-tools-tests +++ b/automation/scripts/run-tools-tests @@ -25,9 +25,9 @@ for f in "$1"/*; do echo "FAILED: $f" failed+=" $f" printf ' \n' "$f" "$ret" >> "$xml_out" - # TODO: could use xml escaping... but current tests seems to - # produce sane output + printf '> "$xml_out" cat /tmp/out >> "$xml_out" + printf ']]>' >> "$xml_out" printf ' \n' >> "$xml_out" else echo "PASSED" -- Anthony PERARD