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 07AFBC001DC for ; Wed, 19 Jul 2023 23:55:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8089986828; Thu, 20 Jul 2023 01:51:24 +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="ZuWrRIrJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34320867D4; Thu, 20 Jul 2023 01:50:30 +0200 (CEST) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 309DE86772 for ; Thu, 20 Jul 2023 01:50:21 +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-xd30.google.com with SMTP id ca18e2360f4ac-78360b822abso8383639f.2 for ; Wed, 19 Jul 2023 16:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810620; x=1690415420; 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=d+rdEEVkaxm0nK0yD3TCuPHTPe84DU34VPVYpo0uzW4=; b=ZuWrRIrJUic6NoJLlkuMKnWnZ9sddEFhUE0FmFmN5KpFSuhCG+Its4mm5U+H6pXvgB g2kYp7XdrkBIc+XCuzdlXuvCmaQywGg81wgAltdHo4SFmrkeQldRAQoRGX0LFwc5Daqy 7owFj9jcX1Lq1rxtD8TvTT2gVhUTj2+yHg4VU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810620; x=1690415420; 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=d+rdEEVkaxm0nK0yD3TCuPHTPe84DU34VPVYpo0uzW4=; b=H06LUv0qZhfqZAhFfvxHcKKSajvMu+VQUKIuz5B33yDIKLo1vYXrB1JTBgvfRTetKP SOhbbnQTJwolgsAZ68Nb+kZI9umYOSuBg3fOnegPIYf5rIlw7N6dKtFFB1oRSn9pLge4 7dfea3i5eotdwFWFbJ9fSBLfqo3LgKPiY9RmdHibEyaeSAuBclo6qs/vUnfyI5EMPbL/ JkVxUtkm8y+UTj6jg5SIL45+xDPmxQz5gA3HRt4JWDvcaoy5A+L125mJuJkVvbh4bwSS ToYTrxW7JlvUx5bP9seiOoob4KTof0dqqEvn08ps2uEq0Yuwi7XtecBQKUlM4Mrq99ib DiCA== X-Gm-Message-State: ABy/qLbBG4usi7yAUsSAEKWw4AAuri+MuDJ5s4h0HUNzUlCiOowCQ0bj OuAcMZDLDukKNlNACPMZpEFhKHNOwB3uZ2HAE9o= X-Google-Smtp-Source: APBJJlFuvVdjB5atouADNrr8pBdkES+MOFRvlst5m8wflC6IIAoWNxY1aQGj42OazqCywCM0RWK6KA== X-Received: by 2002:a5d:8596:0:b0:786:cd9c:cfa2 with SMTP id f22-20020a5d8596000000b00786cd9ccfa2mr3876295ioj.0.1689810619775; Wed, 19 Jul 2023 16:50:19 -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 ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:19 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 27/83] buildman: Add a test for the -A option Date: Wed, 19 Jul 2023 17:48:35 -0600 Message-ID: <20230719234953.796101-28-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-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 85222b9f9bc2..ca579a27c61f 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -1016,3 +1016,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.487.g6d72f3e995-goog