aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTino Reichardt <[email protected]>2024-08-07 01:30:11 +0200
committerGitHub <[email protected]>2024-08-06 16:30:11 -0700
commit90a02d7063ba15b612cc6a19c9cfc2a994b9336a (patch)
tree26eee0ceb0237e906d6b4e1ced7a7e6c71ff9ed7
parent02a9f7fed7df12e3a18c984db6b8fc927daa4630 (diff)
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]>
-rwxr-xr-xtests/zfs-tests/tests/functional/io/io_uring.ksh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/io/io_uring.ksh b/tests/zfs-tests/tests/functional/io/io_uring.ksh
index 2fa146556..f14b9f450 100755
--- a/tests/zfs-tests/tests/functional/io/io_uring.ksh
+++ b/tests/zfs-tests/tests/functional/io/io_uring.ksh
@@ -41,13 +41,13 @@ verify_runnable "global"
if ! $(grep -q "CONFIG_IO_URING=y" /boot/config-$(uname -r)); then
- log_unsupported "Requires io_uring support"
+ log_unsupported "Requires io_uring support within Kernel"
fi
if [ -e /etc/os-release ] ; then
source /etc/os-release
- if [ -n "$REDHAT_SUPPORT_PRODUCT_VERSION" ] && ((floor($REDHAT_SUPPORT_PRODUCT_VERSION) == 9)) ; then
- log_unsupported "Disabled on CentOS 9, fails with 'Operation not permitted'"
+ if [ $PLATFORM_ID = "platform:el9" ]; then
+ log_unsupported "Disabled on RHEL 9 variants: fails with 'Operation not permitted'"
fi
fi