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 A4370C433FE for ; Sat, 22 Oct 2022 12:04:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 86D8184F11; Sat, 22 Oct 2022 14:04:47 +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="s2PzUuuG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D00684E3A; Sat, 22 Oct 2022 14:04:42 +0200 (CEST) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 2C37E84E3A for ; Sat, 22 Oct 2022 14:04:40 +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-x82c.google.com with SMTP id bb5so3174269qtb.11 for ; Sat, 22 Oct 2022 05:04:40 -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=ruR3yaEYKGLPVRDf531QfGwuwkjN/yMY4GBXwhm+zas=; b=s2PzUuuGMtEsR5cGi3nfQnblmx6qY54m4XhhVZl+DHRrlC9l3AT4N8W+GijublJcJd 5TZDaTyV+mEdqRS/pp5emgRzI/9q5IrWk9jHUSjx5vx0JGYsst3o2irW8LXWitrkNvkm ZYYZmdummbb3tM0SOwKXV59gyeA7DS7hNAGKs= 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=ruR3yaEYKGLPVRDf531QfGwuwkjN/yMY4GBXwhm+zas=; b=Kbn6FsCs+1Q3jiZkWomGEvSnsmaogrmYM7X4BPX8m8cFJiXZP1pnXYOfzHf5MjbA4l Uhj2EFnIEmpxr6GV9Iv7pWZBOayEoFPbJZ8MVm9Jk5Gs/WNKmVzFglIzB3CrRmwPoH3K hSpdLMw9+v3emJGqK12RSl7QV8r67eKyQwEs/ZOiwrYFjRS9JnPxUpV+TFyBh40zYM/0 xpIMYnLVd3BvK8hMKjmJmiFV/rj/+i4D3AFqUmAo3bItxKB8iy8vd9ub/bQl6yuuSAlP uZG3RedWPhebzMug0BrggEf+ORFtXAOG3GGJFMvmQCnB93hf8DpDAdBnfPoxWupJ1IgZ 8gKA== X-Gm-Message-State: ACrzQf3+20DOlLiDfvjMp2Oz9JlV1ANa/XADMxbHb+tReXLvrXQYKkQs iwy2oSrflZulnbBrP+uOusP0Yw== X-Google-Smtp-Source: AMsMyM7H5bqcF5SS/3MQgXnrprDdjur6ScL650MdgpgWF9RD53/wZhdt+FpsEhiPuIxBLEB9FrOXBg== X-Received: by 2002:a05:622a:148d:b0:39c:ca0e:9b49 with SMTP id t13-20020a05622a148d00b0039cca0e9b49mr19683033qtx.189.1666440278911; Sat, 22 Oct 2022 05:04:38 -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 h10-20020ac8744a000000b0039953dcc480sm9362563qtr.88.2022.10.22.05.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 05:04:37 -0700 (PDT) Date: Sat, 22 Oct 2022 08:04:35 -0400 From: Tom Rini To: Heinrich Schuchardt Cc: Simon Glass , U-Boot Mailing List Subject: Re: Don't use sudo in python tests Message-ID: <20221022120435.GG2020586@bill-the-cat> References: <0bafee35-c9e2-9062-b26e-7052de28a354@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f/aTwylHWyY6uIyV" Content-Disposition: inline In-Reply-To: <0bafee35-c9e2-9062-b26e-7052de28a354@gmx.de> 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 --f/aTwylHWyY6uIyV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? 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 Tom --f/aTwylHWyY6uIyV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmNT3EoACgkQFHw5/5Y0 tyzBewwAgr/MhuPFC5fssxmTQmuK1pr2RUXuHoZusHgJmSJ+CJpPLhmP8EjkM7AN NR0aPMQXhgl05QqQ55gw0ySYXveXOhth/XA8I2c407Bf/kUK9nZ5hI54bnJgagU+ SN4Y9R3LZm07Jdg0I9U97LBQh4ujPBTmpkoZT1zRrJ2EbCBSxrm3CS+UQ8G2QJMJ 9YFizbQgcz3QTF30cRoyXLegjlRowuSlLU0mRrSgiKWRLWAkrH5t6QDm3fGfgkZP ag03ayxhLYLAknFBfCWDh//7ERbH1wm4gq5L8KNCmtcd2f/UG0s5lezP7pIA889q dNAj0nnW57sYp3WDf2JfRHbbsiLocD/rcFJH02KlaQXkLPhYf3pRtyxoWpWRlSRJ 6BwqI6BOvUfUSfoQz8mI2tOj2aRoA94GzW0nNrdxC63wF3GbdUr+IZu+/M30PSeC gXYxJBTwIQmw31i20P0fEnZtRi7Fhbr43obto7t/Ee85UN+mNLpsgA7iYvyJ5S5j KAaolDr/ =vcn1 -----END PGP SIGNATURE----- --f/aTwylHWyY6uIyV--