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 9566DC001DE for ; Tue, 25 Jul 2023 14:13:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 467A186377; Tue, 25 Jul 2023 16:13:41 +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="LPdmv0/G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F0FC8636F; Tue, 25 Jul 2023 16:13:39 +0200 (CEST) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 A92068638E for ; Tue, 25 Jul 2023 16:13:35 +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-xd36.google.com with SMTP id ca18e2360f4ac-783546553ddso197289739f.0 for ; Tue, 25 Jul 2023 07:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690294414; x=1690899214; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J5E4csI0QuA6Wz9GqGuZuP+StLAFAqWs8K1oHEzIe8c=; b=LPdmv0/GEJMBfUbfQ4YnNuBfUf0/8wVlbksmKVxtn/bGTVP+M4BcwDvJ1WDQeqfKQ0 MeUoM4hafi3F/orkEAgqoutY+Z3gd6GNZqclreJSzs/7i5D48kerqt8Es+u31IYUJMZN X5pciL4A2Z1NiN/2igTr0Itadqhl+NT0N3vYw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690294414; x=1690899214; 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=J5E4csI0QuA6Wz9GqGuZuP+StLAFAqWs8K1oHEzIe8c=; b=S76Izh9nfoTGpN2TznJF06Q7edDKLht/r/GeqW4nWdOx/W0o6X+dAXQH9wXWaDFpKm QJrlduthLq+ezGFw//59Xht+tFKQPY71uto3qyX2enWLWjRftktXFSL7X8kwqp0Kq5Bd z4/6I6nq3Lzp/T5VpsUh6JWzzQH/veB9m1bK/G9dulPGvYq9Sv89HgzFjh/KYkcZsUe8 7mfniiM5XucdX7cI7ioKRp+/rdaJ12/fCZ7BXn+WenE7FKy1QJ2ux21wulgQgwrtpUH8 eGba9kv1WZwibf4DWilkHIP6KbEqKyPTJV6DECKNFVTxSMEGTOO4y7z5aaX8xMWFE0m4 j7kg== X-Gm-Message-State: ABy/qLY7geHnFdPeM0GQBdZYPIfw/sCFcKSOQchaVQrSDhNitOTgbaDT 3aLQMtqppGEG8rRBt1ADansDZTLDaCsbXdTAXgc= X-Google-Smtp-Source: APBJJlGYtkbiMtvIDgF4mztMQTkLeyDyqv5i9UMeHMyyR23ixnjX8aC4pexcyMmc16YJP5iRBjzJhw== X-Received: by 2002:a5e:db01:0:b0:783:6544:cc9e with SMTP id q1-20020a5edb01000000b007836544cc9emr3114389iop.8.1690294414279; Tue, 25 Jul 2023 07:13:34 -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 s10-20020a02ad0a000000b004290985a1efsm3723624jan.43.2023.07.25.07.13.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 07:13:33 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH] buildman: Specify the output directory in tests Date: Tue, 25 Jul 2023 08:13:22 -0600 Message-ID: <20230725141330.375508-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-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.8 at phobos.denx.de X-Virus-Status: Clean The default output directory is generally '../' in tests so we end up trying to create '../.bm-work'. This does not work with azure, so update these tests to use the temporary directory instead. Signed-off-by: Simon Glass --- tools/buildman/func_test.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 58a9bf33ab3b..3115700f07bd 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -588,7 +588,8 @@ Some images are invalid''' def testBranchWithSlash(self): """Test building a branch with a '/' in the name""" self._test_branch = '/__dev/__testbranch' - self._RunControl('-b', self._test_branch, clean_dir=False) + self._RunControl('-b', self._test_branch, '-o', self._output_dir, + clean_dir=False) self.assertEqual(self._builder.count, self._total_builds) self.assertEqual(self._builder.fail, 0) @@ -1028,37 +1029,39 @@ endif def test_exclude_one(self): """Test excluding a single board from an arch""" - self._RunControl('arm', '-x', 'board1') + self._RunControl('arm', '-x', 'board1', '-o', self._output_dir) self.assertEqual(['board0'], [b.target for b in self._boards.get_selected()]) def test_exclude_arch(self): """Test excluding an arch""" - self._RunControl('-x', 'arm') + self._RunControl('-x', 'arm', '-o', self._output_dir) self.assertEqual(['board2', 'board4'], [b.target for b in self._boards.get_selected()]) def test_exclude_comma(self): """Test excluding a comma-separated list of things""" - self._RunControl('-x', 'arm,powerpc') + self._RunControl('-x', 'arm,powerpc', '-o', self._output_dir) self.assertEqual(['board4'], [b.target for b in self._boards.get_selected()]) def test_exclude_list(self): """Test excluding a list of things""" - self._RunControl('-x', 'board2', '-x' 'board4') + self._RunControl('-x', 'board2', '-x' 'board4', '-o', self._output_dir) self.assertEqual(['board0', 'board1'], [b.target for b in self._boards.get_selected()]) def test_single_boards(self): """Test building single boards""" - self._RunControl('--boards', 'board1') + self._RunControl('--boards', 'board1', '-o', self._output_dir) self.assertEqual(1, self._builder.count) - self._RunControl('--boards', 'board1', '--boards', 'board2') + self._RunControl('--boards', 'board1', '--boards', 'board2', + '-o', self._output_dir) self.assertEqual(2, self._builder.count) - self._RunControl('--boards', 'board1,board2', '--boards', 'board4') + self._RunControl('--boards', 'board1,board2', '--boards', 'board4', + '-o', self._output_dir) self.assertEqual(3, self._builder.count) def test_print_arch(self): -- 2.41.0.487.g6d72f3e995-goog