From 95afe3b3cc821ea7f26a6c19fb9277493d59b45a Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jul 29 2019 11:48:49 +0000 Subject: Fix spamassassin tests in CentOS8 --- diff --git a/tests/p_spamassassin/spamassassin_test.sh b/tests/p_spamassassin/spamassassin_test.sh index f733bec..f4435c3 100755 --- a/tests/p_spamassassin/spamassassin_test.sh +++ b/tests/p_spamassassin/spamassassin_test.sh @@ -3,8 +3,10 @@ t_Log "Running $0 - check that spamassassin can detect spam." -VERSION=`t_GetPkgVer spamassassin` +if [ "$centos_ver" -lt 8 ] ; then +VERSION=-`t_GetPkgVer spamassassin` +fi spamassassin --lint &&\ -spamassassin < /usr/share/doc/spamassassin-${VERSION}/sample-spam.txt | grep -q 'X-Spam-Flag: YES' +spamassassin < /usr/share/doc/spamassassin${VERSION}/sample-spam.txt | grep -q 'X-Spam-Flag: YES' t_CheckExitStatus $?