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 AFF43C433FE for ; Sat, 22 Oct 2022 20:02:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2183784E3A; Sat, 22 Oct 2022 22:02:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="msui7TjL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 767D584E3A; Sat, 22 Oct 2022 22:02:52 +0200 (CEST) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 E37DA84D8E for ; Sat, 22 Oct 2022 22:02:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id hh9so3616420qtb.13 for ; Sat, 22 Oct 2022 13:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fGJjErMi4VMYXEJldWXpMhezNsinWG9E3GCOUn5ZjxE=; b=msui7TjL/pK8geiZDt8CJ8DNSZu92LPbUREeJl89XnGJHXDTDUpEfhdn92jO0bOWzf ID3UJUaCxRwii4Su1p4tBfUkQ4KD//H1rOYrnxg4vJ3rWbrh4hn9EIWiEyPu7fHVljtM ionIPtRzPci66ORrdwor6W5/PcDz1v4h+niHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fGJjErMi4VMYXEJldWXpMhezNsinWG9E3GCOUn5ZjxE=; b=kRSy/AhImeQDhU6r8U5aOhiOnVybyk10tYFtwENwqoovdDGBdC2BMxLfrok/xUzzJv ngE4LuDNrfDemFXJUImeEyB/oHsmUWaat/AXF94MgY4RlDK743HdVlEDzaO0DloLL+A7 AyHWWQoHZnYgM8SNn8XMRkQAls7HnHC7H7edZzNmKCAPBYOyOsfIIXLnts/e1P7CztO6 2NGSTNGT4MCN+VLz0q6GgRv1h21iw4wEp3ZJ9cEhRCvzHTVG005X3u0pGAmTSsupK7wz 6Oa+13FxCPTCIyLAAYSqfUg3nQD/dcaBXUuY62eUF6Oo557T14ZEvmekIXVQTdG0XT3n n4Lg== X-Gm-Message-State: ACrzQf2k9yhgaB2H2Pq3PO8N/WEzUb84kUz92ssCzizT66gbpQ4Dynxq fdsaUgAICFkQASERc+GkPxnaQQ== X-Google-Smtp-Source: AMsMyM6twl0lKA4I8rL/NW4akLTW82N9g3f5AZKkxSrORAlwWsElTuY005tBrNaWqs3xrEcls+4FGw== X-Received: by 2002:ac8:7c4a:0:b0:39c:f9c0:29c4 with SMTP id o10-20020ac87c4a000000b0039cf9c029c4mr19798081qtv.14.1666468968495; Sat, 22 Oct 2022 13:02:48 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-c8e3-75c2-7f29-be84.res6.spectrum.com. [2603:6081:7b00:6400:c8e3:75c2:7f29:be84]) by smtp.gmail.com with ESMTPSA id x12-20020a05620a448c00b006ec5238eb97sm11992902qkp.83.2022.10.22.13.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 13:02:47 -0700 (PDT) Date: Sat, 22 Oct 2022 16:02:45 -0400 From: Tom Rini To: Sean Anderson Cc: Heinrich Schuchardt , Simon Glass , U-Boot Mailing List Subject: Re: Don't use sudo in python tests Message-ID: <20221022200245.GJ2020586@bill-the-cat> References: <0bafee35-c9e2-9062-b26e-7052de28a354@gmx.de> <20221022120435.GG2020586@bill-the-cat> <2436cd26-54e2-5e4d-2280-010e8de754d6@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Nw9zQgn0BoBxj0TJ" Content-Disposition: inline In-Reply-To: <2436cd26-54e2-5e4d-2280-010e8de754d6@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --Nw9zQgn0BoBxj0TJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 22, 2022 at 02:44:27PM -0400, Sean Anderson wrote: > On 10/22/22 08:04, Tom Rini wrote: > > On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: > > > Hello Simon, > > >=20 > > > As described in doc/develop/py_testing.doc using sudo in python tests > > > should be avoided. > > >=20 > > > * users building U-Boot may not be sudoers > > > * running code as sudo comes with a risk > > >=20 > > > You added sudo in test/py/tests/test_ut.py > > >=20 > > > Can we use virt-make-fs here? > >=20 > > Note that virt-make-fs is only suitable for trivial cases as it's > > otherwise too slow. This is possibly one of the cases where it's too > > slow. >=20 > An easy way to do this is to use fuse2fs/fusefat. I guess at this point some patches to migrate a test or two over, so we can see how they perform, would be much appreciated. --=20 Tom --Nw9zQgn0BoBxj0TJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmNUTF8ACgkQFHw5/5Y0 tyz/SQwAiazVGLmQRfePG+YHxi/8UdvT2YpmuMOa8jffuEH9gEgZ8sGGFwWwB6dd aNFh1G0GMUVn4DfIeP/KZKdh8jVMzhlf1Z2m4XQbWt3lJipgbAGwcN7dlBJWLtNB AFo49+JYoNWUSpymxBOFnO5uBmZtOLctf9a8q8oPeQtXiKVCYSYn8Llfdq02TKda 3AXPfrRRyVfJNTocaQwJ7m/sNSFRo12yx7US/CSavLmuAqo7aSOm0vx1Ka6ap8nk +eSH4xnMAoJ6jKOQXXyy5Q8/9PDyD0+wqIRf2L5mljMgNlcz3oc/GswiuiHjzWCd pdqjGFC8Fsu/N1BU+JsZjX3ojA43Mo1vnx8m1vGKdZUZ6g/pFpwbzcSaIzdEGerz wD7LDJ2LO12ZqdgY8r4q8HI7ZzHF7Y/hZ3wVWwY84QF1RIsJA0QQg0MMkdgRosPx 0pOZTGgHcuOldh4KVwWEzEA2nCBQKGOH51Z2T6o71yXsAWzOXClgYbtdBZ9qiWFP chHDIPul =1GkB -----END PGP SIGNATURE----- --Nw9zQgn0BoBxj0TJ--