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 C3B64C5AD49 for ; Tue, 3 Jun 2025 12:42:46 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1004296.1384048 (Exim 4.92) (envelope-from ) id 1uMQyS-0007oO-Dw; Tue, 03 Jun 2025 12:42:36 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1004296.1384048; Tue, 03 Jun 2025 12:42:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uMQyS-0007nZ-35; Tue, 03 Jun 2025 12:42:36 +0000 Received: by outflank-mailman (input) for mailman id 1004296; Tue, 03 Jun 2025 12:42:34 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uMQyQ-0007Kz-6y for xen-devel@lists.xenproject.org; Tue, 03 Jun 2025 12:42:34 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uMQyP-000CHQ-35; Tue, 03 Jun 2025 12:42:33 +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 1uMQyQ-005di7-0X; Tue, 03 Jun 2025 12:42:33 +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=9+GoEHcrcXffSGesQEWI0GuwFDcV6Q4bPLnJ++8/OYE=; b=p+uT9LUN/v9pU5ZWashSBZfh84 aKhiQCaYRmLhAFhGtkb5tSNtqFAWtzqgm8AMK2L4M7VpjpGXc2TsV3dWW/hV5Ph4IiXp8T1ztGMV2 OqliyP0BaRKQ/SqMGKNkeBZxQ1cc9C0si3FG5d/pkVMFzcllRusAzGWLZXcGZy91BIZ8=; 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 9/9] CI: Add timing to junit Date: Tue, 3 Jun 2025 14:42:22 +0200 Message-Id: <20250603124222.52057-10-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 Signed-off-by: Anthony PERARD --- automation/scripts/run-tools-tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automation/scripts/run-tools-tests b/automation/scripts/run-tools-tests index 852c1cfbcf..e38cc4068c 100755 --- a/automation/scripts/run-tools-tests +++ b/automation/scripts/run-tools-tests @@ -18,9 +18,12 @@ for f in "$1"/*; do continue fi echo "Running $f" - printf ' \n' "$f" >> "$xml_out" + time_start=$EPOCHREALTIME "$f" 2>&1 | tee /tmp/out ret=${PIPESTATUS[0]} + time_end=$EPOCHREALTIME + time_test="$(bc <<<"$time_end - $time_start")" + printf ' \n' "$f" "$time_test" >> "$xml_out" if [ "$ret" -ne 0 ]; then echo "FAILED: $f" failed+=" $f" -- Anthony PERARD