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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DF99C636D6 for ; Fri, 17 Feb 2023 22:45:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 839D8857F3; Fri, 17 Feb 2023 23:45:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="EpV2pc0z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8408285011; Fri, 17 Feb 2023 23:45:27 +0100 (CET) Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 905DA85011 for ; Fri, 17 Feb 2023 23:45:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12a.google.com with SMTP id k15so848288ilv.3 for ; Fri, 17 Feb 2023 14:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8qoCP9OQfEGq6UKtAhnhN332k4hLiHV4nunVGXPVKv0=; b=EpV2pc0z6NwdzfaCDx3ZTgU3OA/U3tnbVB3khb+qVYbyQ4Ddbc+qZ3R5KjSZe92ElO NQAXsKQ7KLj4YLOx5Xng90qD5b26YIa6CAM9CLs16Tk+rN1H2ebFT20qsHfP9BfRqKft JUnUQoEiHbUxac+RRxmd9od4EGK1yZeernEsg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8qoCP9OQfEGq6UKtAhnhN332k4hLiHV4nunVGXPVKv0=; b=cRpsXnfzIZEMCqHrqo6B1VoL2vGGHV64i6t8fpUNJPFxPWikGEbb2j5gddoLoAjsEu 7MPEz5cVBN9yiRQBcpske0uKMOOD7rO/0EmqF23t6gkm1SqC5fWlTmILAEGax02MgQJN 5Y6blmqLUiKaqAC396/OdJ04i14NDnD97rTYptBNyqtX+0/lALoACG6bysr/ivl6G6C9 PbKLfPovCGsi0ZVz84y+u74KpCmjoLaB3bZRwEWB9djaUEkFSdTNgf6MdVL0a/IKgHPh /ZBLFuqKdGgaP+RKEhyD337MPO9iSec75KNR5gdmY9Fj7SdYcYmuv1E2Ov/8ZS54oV+H tMuA== X-Gm-Message-State: AO0yUKWU+L8vs5IOoTU/9pmhuhVnHKK/WsfY5Ncgef+f4NqpiB3YnBSY SCSOGkQ+vEQGwfzMS6UunB54lquvDhYnzAbD X-Google-Smtp-Source: AK7set/Qge46j1adF59kwqgKom+qdPQwvMPyaGCWI2esVVqQceywpvNuXFeIU/jAVRwFO/G7VD4ERg== X-Received: by 2002:a05:6e02:66f:b0:310:d7d2:548 with SMTP id l15-20020a056e02066f00b00310d7d20548mr1121998ilt.31.1676673923141; Fri, 17 Feb 2023 14:45:23 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id b6-20020a92dcc6000000b0031418401f88sm1686643ilr.69.2023.02.17.14.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 14:45:22 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH] trace: Relax test requirements Date: Fri, 17 Feb 2023 15:45:16 -0700 Message-Id: <20230217224516.1644987-1-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean We expect the profile and bootstage to agree on timing, but when running on slow machines there can be a larger descrepency. Increase the tolerance to fix this. Fixes: 9cea4797aeb ("trace: Add a test") Signed-off-by: Simon Glass --- test/py/tests/test_trace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py index 14584d11a23..ac3e95925e9 100644 --- a/test/py/tests/test_trace.py +++ b/test/py/tests/test_trace.py @@ -299,6 +299,7 @@ def test_trace(u_boot_console): fg_time = check_flamegraph(cons, fname, proftool, map_fname, trace_fg) - # Check that bootstage and flamegraph agree to within 10% + # Check that bootstage and flamegraph agree to within 30% + # This allows for CI being slow to run diff = abs(fg_time - dm_f_time) - assert diff / dm_f_time < 0.1 + assert diff / dm_f_time < 0.3 -- 2.39.2.637.g21b0678d19-goog