From 41fef5d11c2fa9309ba686aef4f6ab395f2842dc Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jul 28 2019 18:05:40 +0000 Subject: whois is not available in CentOS8 --- diff --git a/tests/p_jwhois/0-install_jwhois.sh b/tests/p_jwhois/0-install_jwhois.sh index f9f9ad1..5f5b3fa 100755 --- a/tests/p_jwhois/0-install_jwhois.sh +++ b/tests/p_jwhois/0-install_jwhois.sh @@ -3,7 +3,11 @@ # nc (netcat) is required for the test -if [ "$centos_ver" = "7" ] ;then +if [ "$centos_ver" -ge 8 ] ;then + t_Log "No whois package for CentOS $centos_ver -> SKIP" + t_CheckExitStatus 0 + exit 0 +elif [ "$centos_ver" = "7" ] ;then whois_pkg="whois" else whois_pkg="jwhois" diff --git a/tests/p_jwhois/jwhois_test.sh b/tests/p_jwhois/jwhois_test.sh index 0afac83..097328e 100755 --- a/tests/p_jwhois/jwhois_test.sh +++ b/tests/p_jwhois/jwhois_test.sh @@ -1,6 +1,9 @@ #!/bin/sh # Author: Athmane Madjoudj +if [ "$centos_ver" -ge 8 ] ;then + exit 0 +fi t_Log "Running $0 - check that jwhois can connect to whois server and get the info." # Dummy whois server