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