Skip to content

Commit 8d0f315

Browse files
calebsanderkawasaki
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 <[email protected]> Reviewed-by: Ming Lei <[email protected]>
1 parent 2475911 commit 8d0f315

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)