From: Christian Goeschel Ndjomouo Date: Fri, 20 Feb 2026 23:26:11 +0000 (-0500) Subject: umount: add test for --graceful option X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d932bb5ce83ac0adae0006bf51bbf53e99a0935b;p=thirdparty%2Futil-linux.git umount: add test for --graceful option Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/tests/ts/mount/umount-recursive b/tests/ts/mount/umount-recursive index 94e3680d1..fc03b1c26 100755 --- a/tests/ts/mount/umount-recursive +++ b/tests/ts/mount/umount-recursive @@ -95,6 +95,10 @@ udevadm settle $TS_CMD_UMOUNT --recursive $TS_MOUNTPOINT >> $TS_OUTPUT 2>> $TS_ERRLOG [ $? == 0 ] || ts_die "umount failed" +# the mountpoint has already been unmounted, so this second call should not fail +$TS_CMD_UMOUNT --graceful $TS_MOUNTPOINT >> $TS_OUTPUT 2>> $TS_ERRLOG +[ $? == 0 ] || ts_die "--graceful option failed" + ts_log "Success" ts_finalize