Skip to content

Commit 90a02d7

Browse files
authored
ZTS: fix io_uring test on RHEL 9 variants (#16411)
Simplify the test, by using the variable "$PLATFORM_ID" in favor of "$REDHAT_SUPPORT_PRODUCT_VERSION". Signed-off-by: Tino Reichardt <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: George Melikov <[email protected]>
1 parent 02a9f7f commit 90a02d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/zfs-tests/tests/functional/io/io_uring.ksh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ verify_runnable "global"
4141

4242

4343
if ! $(grep -q "CONFIG_IO_URING=y" /boot/config-$(uname -r)); then
44-
log_unsupported "Requires io_uring support"
44+
log_unsupported "Requires io_uring support within Kernel"
4545
fi
4646

4747
if [ -e /etc/os-release ] ; then
4848
source /etc/os-release
49-
if [ -n "$REDHAT_SUPPORT_PRODUCT_VERSION" ] && ((floor($REDHAT_SUPPORT_PRODUCT_VERSION) == 9)) ; then
50-
log_unsupported "Disabled on CentOS 9, fails with 'Operation not permitted'"
49+
if [ $PLATFORM_ID = "platform:el9" ]; then
50+
log_unsupported "Disabled on RHEL 9 variants: fails with 'Operation not permitted'"
5151
fi
5252
fi
5353

0 commit comments

Comments
 (0)