diff options
author | Tom Rini <trini@konsulko.com> | 2023-04-05 22:00:21 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-05 22:00:21 -0400 |
commit | a323a9a35443f9355a8a65580071e0332744ce69 (patch) | |
tree | b3a44a7809fffc55f1b9d8c9632f35e8db858ab0 | |
parent | 487e42f7bc5e685c9337890a38358581bb4f31bc (diff) | |
download | u-boot-CHECK/lazy-umount.zip u-boot-CHECK/lazy-umount.tar.gz u-boot-CHECK/lazy-umount.tar.bz2 |
pytest: Use --lazy with umountCHECK/lazy-umount
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 <trini@konsulko.com>
-rw-r--r-- | test/py/tests/test_ut.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/py/tests/test_ut.py b/test/py/tests/test_ut.py index e8c8a6d..0b45863 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) |