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 1A9E5EB64DD for ; Wed, 5 Jul 2023 12:21:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 81425861EB; Wed, 5 Jul 2023 14:20:36 +0200 (CEST) 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="BQU2pPqP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A362785202; Wed, 5 Jul 2023 14:20:27 +0200 (CEST) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (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 2F1848622B for ; Wed, 5 Jul 2023 14:20:25 +0200 (CEST) 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-io1-xd32.google.com with SMTP id ca18e2360f4ac-78362f574c9so232267839f.3 for ; Wed, 05 Jul 2023 05:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688559623; x=1691151623; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+Em/j6nx3kvTznop5zDigSEV2XJo6Pp03f7rut3uSaI=; b=BQU2pPqPIpU7MsB0XIry8wVc3LEu0Eg8xLV9v4OJ8YWnM4TL8F5sZNQUdGWTYCEJgk IVwnUgylwk0G68/h9hCxVGk4aWCgkavuF+JIDRvKpHFztu02uFExScGXba57NohPIIJC ktjspYOqMl0T14ihfHGWagJ12kpLAkfSzEUkc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688559623; x=1691151623; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Em/j6nx3kvTznop5zDigSEV2XJo6Pp03f7rut3uSaI=; b=c/1kZHBecRJB22b1TUzQoBqwvc5wIFIT37Jf93LH6HT6Ps4e2CnHIc7/KFAmKLMWpn p1kNE0tn8wjAeLvQprmYn/K5n4CgHGqpDORTHlhbGu1dzS1X1cDBk701o17rNeWX/Xjc Vco2TDcfFji95Os+1YCNB/4ytVIswDPK7URmXsZHfViDq9qFzAASImvk2y+MRLBtqbaQ uhEsY8QKioChVUiq8DaGJrY5mxbaj/c6vzC2fcLDml8Hlww4QDgIuk+/9Jk+61ftJr+Q CQKHX/N4X58UwgjEoaZQ9dhKWSoj+hkIzeP0QteVXck7eTYcPz1Q2XObzB4sJvLOedSH 0UUg== X-Gm-Message-State: AC+VfDzQlxPHUJly0ftP0DWjDy7qAth6DtN9EnLk8OYNE1vx9x8bDDMN JYedfrdpS8/+9VfbKBB/lR84Vr/2VJXmnrQK8FI= X-Google-Smtp-Source: ACHHUZ5fDYFYqxsMC6ZYFeI5wIcQGV0SiKJEPfLTv6OkPS7GqHv34XciZrW5UpOw11mhsR8cSpPvYw== X-Received: by 2002:a6b:f60a:0:b0:783:344d:6b46 with SMTP id n10-20020a6bf60a000000b00783344d6b46mr15926743ioh.21.1688559623777; Wed, 05 Jul 2023 05:20:23 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id i11-20020a02ca4b000000b0042b1543bceasm3998459jal.21.2023.07.05.05.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 05:20:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH v2 07/60] buildman: Add a test for the -A option Date: Wed, 5 Jul 2023 13:18:35 +0100 Message-ID: <20230705121951.1629361-8-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog In-Reply-To: <20230705121951.1629361-1-sjg@chromium.org> References: <20230705121951.1629361-1-sjg@chromium.org> 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.8 at phobos.denx.de X-Virus-Status: Clean This lacks a test at present. Add one. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/func_test.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index d9b4c41ec68c..5dbbb53b6572 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -785,10 +785,9 @@ CONFIG_LOCALVERSION=y ''', cfg_data) self.assertIn('Not dropping LOCALVERSION_AUTO', stdout.getvalue()) - def testRegenBoards(self): - """Test that we can regenerate the boards.cfg file""" - outfile = os.path.join(self._output_dir, 'test-boards.cfg') - if os.path.exists(outfile): - os.remove(outfile) - result = self._RunControl('-R', outfile, brds=None, get_builder=False) - self.assertTrue(os.path.exists(outfile)) + def test_print_prefix(self): + """Test that we can print the toolchain prefix""" + with test_util.capture_sys_output() as (stdout, stderr): + result = self._RunControl('-A', 'board0') + self.assertEqual('arm-\n', stdout.getvalue()) + self.assertEqual('', stderr.getvalue()) -- 2.41.0.255.g8b1d071c50-goog