4cb46e
commit 0b1654506039e614954e141aad3ceddb7018a2cb
4cb46e
Author: David Howells <dhowells@redhat.com>
4cb46e
Date:   Wed Apr 17 15:42:30 2019 +0100
4cb46e
4cb46e
    TEST: Apply test exclusions for RHEL-8
4cb46e
    
4cb46e
    RHEL-8 doesn't enable the DH/KDF code, so disable the tests on all RHEL
4cb46e
    distributions for now.
4cb46e
    
4cb46e
    Signed-off-by: David Howells <dhowells@redhat.com>
4cb46e
4cb46e
diff --git a/tests/prepare.inc.sh b/tests/prepare.inc.sh
4cb46e
index ab9ae4d..9c4adda 100644
4cb46e
--- a/tests/prepare.inc.sh
4cb46e
+++ b/tests/prepare.inc.sh
4cb46e
@@ -96,7 +96,10 @@ fi
4cb46e
 # Work out whether Diffie-Hellman is supported by the kernel
4cb46e
 #
4cb46e
 have_dh_compute=0
4cb46e
-if keyutils_at_or_later_than 1.5.10 && kernel_at_or_later_than 4.7-rc1
4cb46e
+if [ $OSDIST = RHEL ]
4cb46e
+then
4cb46e
+    :
4cb46e
+elif keyutils_at_or_later_than 1.5.10 && kernel_at_or_later_than 4.7-rc1
4cb46e
 then
4cb46e
     have_dh_compute=1
4cb46e
 fi