Skip to content

Commit eb3d192

Browse files
calebsanderaxboe
authored andcommitted
selftests: ublk: enable test_integrity_02.sh on fio 3.42
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>
1 parent eac857a commit eb3d192

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/testing/selftests/ublk/test_integrity_02.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ if ! _have_program fio; then
77
exit $UBLK_SKIP_CODE
88
fi
99

10+
min_fio_version=fio-3.42
1011
fio_version=$(fio --version)
11-
if [[ "$fio_version" =~ fio-[0-9]+\.[0-9]+$ ]]; then
12-
echo "Requires development fio version with https://github.com/axboe/fio/pull/1992"
12+
if ! sort --version-sort --check=quiet <(printf "%s\n%s\n" "$min_fio_version" "$fio_version"); then
13+
echo "Requires fio version with https://github.com/axboe/fio/pull/1992"
1314
exit $UBLK_SKIP_CODE
1415
fi
1516

0 commit comments

Comments
 (0)