]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkdiscard: (tests) add more long option tests
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sat, 21 Feb 2026 01:34:50 +0000 (20:34 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sat, 21 Feb 2026 01:34:50 +0000 (20:34 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/expected/blkdiscard/offsets
tests/ts/blkdiscard/offsets

index 9af14b3263734bf185fc95476cf6f0769f7d2cdf..c7b37001852ee2cde9e844f6b6da9722244f7ca3 100644 (file)
@@ -47,4 +47,6 @@ ret: 1
 ret: 1
 ret: 1
 ret: 1
+testing --force and --quiet
+ret: 0
 detach loop device from image
index 5dcf2e2829de976b526ec9feef14d76918183f2e..c033b19b6b9537a6f21bc3e359abf6dcf08e4027 100755 (executable)
@@ -92,6 +92,9 @@ run_tscmd $TS_CMD_BLKDISCARD -v -p 511 -l 10240 $DEVICE
 run_tscmd $TS_CMD_BLKDISCARD -v -p 511 -o 1 -l 10240 $DEVICE
 run_tscmd $TS_CMD_BLKDISCARD -v -p 511 -o 511 -l 10240 $DEVICE
 
+ts_log "testing --force and --quiet"
+run_tscmd $TS_CMD_BLKDISCARD --force --quiet $DEVICE >> "$TS_OUTPUT"
+
 sed -i "s#$DEVICE:\s##" $TS_OUTPUT $TS_ERRLOG
 
 ts_log "detach loop device from image"