]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
umount: add test for --graceful option
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 20 Feb 2026 23:26:11 +0000 (18:26 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 23 Feb 2026 13:27:58 +0000 (08:27 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/mount/umount-recursive

index 94e3680d1853387b85593b5a6fd8ee6201e0afe1..fc03b1c26222d7a6e99cc8eaacbd737a7141a119 100755 (executable)
@@ -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