]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests: ublk: enable test_integrity_02.sh on fio 3.42
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 21 Apr 2026 20:09:00 +0000 (14:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Apr 2026 10:52:43 +0000 (04:52 -0600)
fio 3.42 was released with the needed fix for test_integrity_02.sh.
Allow 3.42 and newer in the fio version check.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Link: https://patch.msgid.link/20260421200901.1528842-3-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/test_integrity_02.sh

index aaf1f52da5593620b0171931d9ba88c170f5ba55..2c35fbc8a7cc87cb78fd7f7f41a34fbe10695344 100755 (executable)
@@ -7,9 +7,10 @@ if ! _have_program fio; then
        exit $UBLK_SKIP_CODE
 fi
 
+min_fio_version=fio-3.42
 fio_version=$(fio --version)
-if [[ "$fio_version" =~ fio-[0-9]+\.[0-9]+$ ]]; then
-       echo "Requires development fio version with https://github.com/axboe/fio/pull/1992"
+if ! sort --version-sort --check=quiet <(printf "%s\n%s\n" "$min_fio_version" "$fio_version"); then
+       echo "Requires fio version with https://github.com/axboe/fio/pull/1992"
        exit $UBLK_SKIP_CODE
 fi