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 90628C0015E for ; Sun, 16 Jul 2023 00:44:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6061386688; Sun, 16 Jul 2023 02:39:46 +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="GbBm1TeB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 621978623A; Sun, 16 Jul 2023 02:37:51 +0200 (CEST) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (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 6CACC86371 for ; Sun, 16 Jul 2023 02:37:42 +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-il1-x12b.google.com with SMTP id e9e14a558f8ab-345e55a62d8so13770475ab.3 for ; Sat, 15 Jul 2023 17:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467861; x=1692059861; 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=uzsVr1rIfYhz5624qAgfXayXXuVU59mEMx+P6Gx4bgk=; b=GbBm1TeBjspP8n4ZAd1DdhFKz9TvMbu12cF9vnPybJn/4gcmDYcpAEjQ3uCzClX8gS I9ot+TPiGGyy5Ch6n3kT2xhp9TJJPdfu34/BshcbYSovAguQAxKW99sgVH+pAy49FT9Z gVsttQenxxBU3TDEpQRSRK1v0LDF+HYrEukfc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467861; x=1692059861; 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=uzsVr1rIfYhz5624qAgfXayXXuVU59mEMx+P6Gx4bgk=; b=QO9heLMMk2/TRvoLX7BO4prX/cIK2gNS6n7soZ+QcWYvHjW0CfzzX1xpTgLGxQXyH6 pHBvzL9qDDuHomMImewjuL6XtQ/T2Ra8gLY/Trzl8UWoHcf3bHkBWeUglnYyXGZrevch hWMsAYt+b0v5z2FUZxPfDBWvQV2KRn36ebQFZ7girQ9cQBSN6NV8Gtu25/wc40x1dcv9 0tGY9oWa39CAMsdj/1NmlDV0Xt6+POBcJm2oZICl3nVKMj09kSBpKlhzhtGz5JIywrH1 HMrB/Ch/qteDFS9vrU6UwRG204Hmgs0zZraIs4X5UMcPHoarUjAfkdzstjFnxF62WqbQ Ryhw== X-Gm-Message-State: ABy/qLZxIZ877mGOUddbWZOF2shAsX237pPlrxiufj3SnNAoF9JE4h32 E/6WoNTXg1jizgW7WjC8MmXUUcHj7SF/QEcJy+8= X-Google-Smtp-Source: APBJJlGc7gyaj+6B4x7exOVmQpKjIZ8zMqUfXrwd0cSywUKcYaaZVNv7B/FoGf6bYfKnaOBdYIhAzw== X-Received: by 2002:a92:dcc7:0:b0:346:7741:3ea9 with SMTP id b7-20020a92dcc7000000b0034677413ea9mr6955273ilr.3.1689467861084; Sat, 15 Jul 2023 17:37:41 -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 t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:40 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 25/81] buildman: Add a test for the -A option Date: Sat, 15 Jul 2023 18:35:53 -0600 Message-ID: <20230716003718.231903-26-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 574161aad876..6753a4098942 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -999,3 +999,10 @@ endif 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.455.g037347b96a-goog