From 73030752cb2e349f4dc6288589055b0e36fc4444 Mon Sep 17 00:00:00 2001 From: Patrik Koncity Date: Thu, 13 Jul 2023 12:52:49 +0200 Subject: [PATCH] Different format of log message for fedora-systems For fedora system is different format of message than in Rhel's. Add conditional to grep it properly for each type of system. --- clevis/Sanity/simple-bind-luks/runtest.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clevis/Sanity/simple-bind-luks/runtest.sh b/clevis/Sanity/simple-bind-luks/runtest.sh index 029f2068..bb432b05 100755 --- a/clevis/Sanity/simple-bind-luks/runtest.sh +++ b/clevis/Sanity/simple-bind-luks/runtest.sh @@ -87,9 +87,7 @@ rlJournalStart rlRun "packageVersion=$(rpm -q ${PACKAGE} --qf '%{name}-%{version}-%{release}\n')" if rlTestVersion "${packageVersion}" '>=' 'clevis-15-8'; then - rlAssertGrep "Error communicating with the server http://localhost" $rlRun_LOG - else - rlAssertGrep "Error communicating with the server!" $rlRun_LOG + rlAssertGrep "Error communicating with .*server http://localhost" $rlRun_LOG -Eq fi rm $rlRun_LOG