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 73018C04A95 for ; Sat, 22 Oct 2022 18:44:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E733684E3A; Sat, 22 Oct 2022 20:44:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="alneLUzg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE0FE84E4D; Sat, 22 Oct 2022 20:44:32 +0200 (CEST) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 33E9884DEB for ; Sat, 22 Oct 2022 20:44:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qv1-xf2b.google.com with SMTP id o8so4045071qvw.5 for ; Sat, 22 Oct 2022 11:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=caH96DZyT8bSow/siP8Q6XR2g7BDgWLujSbhVTMEwSI=; b=alneLUzg6+3CMYVo8v8hOsYUtoJhc04DG3d6uUUjJLdR6GkEQZqobWBR740qrF7y4r k1ILBGKpQk508rO+d0ohD0+o+T74Fz96aJKI5XLPyUOF+NEj2HTnzY/p4PORNo3e1K+D dGND7zEM/wm4XnpTSDJT29w6uNz6PFtAnxc/dyR2hlK7S2Uh4CpU3frXG71vAAvOuWjF dvBHnOjshZtj5jfIl8bZeTlr3Edc1JT0CAz3xglssvMdaJ/07bpW2Dgv4iGGOddIwP7f lM8+RJP+xTon6NBnLJBBFQC8h41xEr0aI56aQcyS8crBAFUIKnoQIxCYMuYb6gw8e0DT gTuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=caH96DZyT8bSow/siP8Q6XR2g7BDgWLujSbhVTMEwSI=; b=nSlPeH7naFJy91Shof/dOMcUUcunOcwBKx1cLZL3UZRGEXcbu93RZfOKeDA7NGF2p2 v9QEuxUaqeUt/G5WTbcZ6S2n4PIVb7BGEUcqjfgaFOQJg5WxRPLcoV09Nx/QyFXgO8CC A3Af0HZvKAKuhNZaiwxGsuL18ASC+5J978AiinRrL6uj84G8sLswEFSjc5wxLzhQhvSX Wl1VlQs+4sPLglduZ0afZi/P8hA+kzRG5nSWL6B/K5o4YXj1zTZqTGdAXodQCntWHt6j UxLpTtqVLuWUPWO4CSS2pDZ1n4OpiIL9JL1joOnKiPyYk29LCb3mAkA1n4q151ed1PDT jLIA== X-Gm-Message-State: ACrzQf0c0YwDqHgStvUh3N1/HFXykQyQCZoNM2t0BhQRJFb5NFcqUYBA swi7rBYD9kzC0aY0zPz5j9w= X-Google-Smtp-Source: AMsMyM5esPmoseXXu+sMxrf6pWDmoMMsYK5iM30yZoSFfWXFNzTYvFcWPfwXMvals3gLcxb8xre3Sg== X-Received: by 2002:ad4:576a:0:b0:4bb:5880:2bd1 with SMTP id r10-20020ad4576a000000b004bb58802bd1mr6438964qvx.104.1666464269031; Sat, 22 Oct 2022 11:44:29 -0700 (PDT) Received: from [192.168.1.201] (pool-173-73-95-180.washdc.fios.verizon.net. [173.73.95.180]) by smtp.gmail.com with ESMTPSA id u9-20020a05622a198900b0039cbe823f3csm10246574qtc.10.2022.10.22.11.44.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Oct 2022 11:44:28 -0700 (PDT) Message-ID: <2436cd26-54e2-5e4d-2280-010e8de754d6@gmail.com> Date: Sat, 22 Oct 2022 14:44:27 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Don't use sudo in python tests Content-Language: en-US To: Tom Rini , Heinrich Schuchardt Cc: Simon Glass , U-Boot Mailing List References: <0bafee35-c9e2-9062-b26e-7052de28a354@gmx.de> <20221022120435.GG2020586@bill-the-cat> From: Sean Anderson In-Reply-To: <20221022120435.GG2020586@bill-the-cat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 10/22/22 08:04, Tom Rini wrote: > On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: >> Hello Simon, >> >> As described in doc/develop/py_testing.doc using sudo in python tests >> should be avoided. >> >> * users building U-Boot may not be sudoers >> * running code as sudo comes with a risk >> >> You added sudo in test/py/tests/test_ut.py >> >> 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. > An easy way to do this is to use fuse2fs/fusefat. --Sean