From patchwork Thu Apr 6 02:19:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1765832 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=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=P0We94Ui; 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)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PsQF63Bwlz1yYs for ; Thu, 6 Apr 2023 12:19:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C44985FD1; Thu, 6 Apr 2023 04:19:48 +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="P0We94Ui"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 89CEF85FE1; Thu, 6 Apr 2023 04:19:45 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) (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 EA13A85FD0 for ; Thu, 6 Apr 2023 04:19:41 +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-yw1-x1129.google.com with SMTP id 00721157ae682-54184571389so714031047b3.4 for ; Wed, 05 Apr 2023 19:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1680747580; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3szWhT+J5/Tkc7fFLom68AZZQzetT/0DyrxmNxEuV9Y=; b=P0We94Ui1WtkTxbh3L3O5rMO0SDFn0GNFupSIRcSCoHUFY8KspDy8lIG6lgfFjMoRm CmlMqvoiaWEYb8CKOX0CIlxFW3p/RVxnwUrwH41RcyP/ns9KgwoTDQssFwc9bf7CiUGU pRIWA6x3pBnQJUHwmtgTjH2LJYUtMaTiEETCg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680747580; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3szWhT+J5/Tkc7fFLom68AZZQzetT/0DyrxmNxEuV9Y=; b=L8t7YtzTTl+XFHqTM8yY8C3DGPpYr5Rgu1K5hIlpswSY5eJi8BjFfZx7OU9G58XR9R Cuj7hu1XHutvPRfOjwEGyncFBJMn1F33QxJpov7JM8Ipd7qh2+ROqG2oRjDhV6+3/FfK U+66oxbcdLGlCoU3b37XqIAZIBodoNCfOSb9v+Bm1RvsciZ003rMgas/Bpw8iXO3oTcC 2HQ57Ax6PFxd93KNBPkKE2tqImrITIMXjUF3SuqBbh+RWeWC7yj0OshdgMOS1MfnJ7vP X/y57sXuKBThHnBnmZgoH9tDnTcXiSev6VRwXZq1o+8KK336EbYWWITe80jVDp/Mas0+ SymQ== X-Gm-Message-State: AAQBX9clZfDbzPkpeMJ04fbb/xdgq/NggTlb9CWh7pJlN7DMPzsFKrbp 3QANFvSo240SO+6zPBkVS94Z0bZObpnD7QreyHeGmw== X-Google-Smtp-Source: AKy350Z2+pRzBPAz/NrkHqfxS6lVSi2Ij057Vw+yfoG7u2Bm2tj+wXJJ6Df2VZL47YGy6GQ+en0HRA== X-Received: by 2002:a0d:ce46:0:b0:54c:3d:85a6 with SMTP id q67-20020a0dce46000000b0054c003d85a6mr2145601ywd.39.1680747580169; Wed, 05 Apr 2023 19:19:40 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-acff-1005-f218-7c24.res6.spectrum.com. [2603:6081:7b00:6400:acff:1005:f218:7c24]) by smtp.gmail.com with ESMTPSA id o10-20020a81ef0a000000b0054605c23114sm22737ywm.66.2023.04.05.19.19.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 19:19:39 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 1/1] pytest: Use --lazy with umount Date: Wed, 5 Apr 2023 22:19:39 -0400 Message-Id: <20230406021939.2526130-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 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 Sometimes when doing tests on real hardware we sometimes run in to the case where some of these mounts haven't been fully flushed. Using the --lazy option with umount will allow us to continue while letting the OS handle flushing the data out still. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- test/py/tests/test_ut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_ut.py b/test/py/tests/test_ut.py index e8c8a6d6bd59..0b45863b4385 100644 --- a/test/py/tests/test_ut.py +++ b/test/py/tests/test_ut.py @@ -213,7 +213,7 @@ booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} str(exc)) finally: if mounted: - u_boot_utils.run_and_log(cons, 'sudo umount %s' % mnt) + u_boot_utils.run_and_log(cons, 'sudo umount --lazy %s' % mnt) if loop: u_boot_utils.run_and_log(cons, 'sudo losetup -d %s' % loop) @@ -274,7 +274,7 @@ label Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl) str(exc)) finally: if mounted: - u_boot_utils.run_and_log(cons, 'sudo umount %s' % mnt) + u_boot_utils.run_and_log(cons, 'sudo umount --lazy %s' % mnt) if loop: u_boot_utils.run_and_log(cons, 'sudo losetup -d %s' % loop)