From patchwork Sun Apr 30 01:29:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1775297 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=DpGNUAEQ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q88126Fzvz1ydX for ; Sun, 30 Apr 2023 11:30:29 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9648C860C7; Sun, 30 Apr 2023 03:30:17 +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="DpGNUAEQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83C3C8617B; Sun, 30 Apr 2023 03:30:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 D455A85BFB for ; Sun, 30 Apr 2023 03:30:13 +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-xd33.google.com with SMTP id ca18e2360f4ac-7696975338aso8688039f.1 for ; Sat, 29 Apr 2023 18:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682818212; x=1685410212; 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=AynfM4ja5aj2kI+L47HoSgCFUnSUH6HEdSUoDBTBCkY=; b=DpGNUAEQ/oJSJQeNNZn48sOUyU1g/Dg31dJ03xZZeIm44IFoYehtreaxRuAHG6AxWO WLGf2BfSzhfnrCvIZ0xsD1AxDdG+6sVYqH1dcOv/FwwSuSkl9nwo1Jbka3Poe4y5VeJ3 v3QH+hgvQpBaRCERJeb+cbTUcxFCUI51uA8Ic= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682818212; x=1685410212; 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=AynfM4ja5aj2kI+L47HoSgCFUnSUH6HEdSUoDBTBCkY=; b=Q8+fZYqc5l/q3H78noMzDqKIEFh9NGc1bhL/dbV6hqL//Qiig2G/QpbWVbbHmU8FZF JDH9IGBkSURQ751BEHv3QpgpXUrKxXwCcBrGgQ1YueVXgFNmli7Wq42DwpS/x99DWmJo gS0tdPntEvOSimROTCVe1SlPtdFUbEtsavjbEfkVs3b7rvPAIejQ/bGGTKLKslz04qgj 0dmEPkIo/omIPCD9wlouTRK7fiZulRQcx5rgs8ilfjL+diK/5W7aav4nDEZOl53LXQFm y/0gl1Y9Q+taX5avl2tPfpLkbmLGkJjPER1zc5K+wufSIlIHfSfGSwX9cyLAxx+NznXS VJeg== X-Gm-Message-State: AC+VfDyjS0jHPpOc3BSxTstkHuBbuba7YRTWYUkIR5PDTP8kCCVVdNFW QXECP+JDTkLPwfQRc3KQgMgg9vggoP9l7WJtMME= X-Google-Smtp-Source: ACHHUZ5Z5bqmPnaJbqi1d2amfyCnUbmHAKusNj+uc3R7ywIZmLSwC42KQ5465fsYMYsJGFNNmzv0cw== X-Received: by 2002:a5e:9707:0:b0:761:b329:535f with SMTP id w7-20020a5e9707000000b00761b329535fmr6347676ioj.4.1682818212388; Sat, 29 Apr 2023 18:30:12 -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 w4-20020a02cf84000000b0040f8ed3ab81sm7259429jar.129.2023.04.29.18.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 18:30:12 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , =?utf-8?q?Pali_Roh=C3=A1r?= , Heinrich Schuchardt , Tom Rini , Simon Glass Subject: [PATCH v2 02/30] u_boot_pylib: Avoid deleting the test_util.py file Date: Sat, 29 Apr 2023 19:29:35 -0600 Message-ID: <20230430013003.1047454-3-sjg@chromium.org> X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog In-Reply-To: <20230430013003.1047454-1-sjg@chromium.org> References: <20230430013003.1047454-1-sjg@chromium.org> MIME-Version: 1.0 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 is needed, so update the removal code to keep it. Signed-off-by: Simon Glass --- Changes in v2: - Split out u_boot_pylib from the subprocess patch scripts/make_pip.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/make_pip.sh b/scripts/make_pip.sh index 4602dcf61c88..ef43e028e385 100755 --- a/scripts/make_pip.sh +++ b/scripts/make_pip.sh @@ -91,7 +91,12 @@ find ${dest} -name __pycache__ -type f -exec rm {} \; find ${dest} -depth -name __pycache__ -exec rmdir 112 \; # Remove test files -rm -rf ${dest}/*test* +for path in ${dest}/*test*; do + echo ${path} + if ! [[ "${path}" =~ .*test_util.* ]]; then + rm -rf ${path} + fi +done mkdir ${dir}/tests cd ${dir}