Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 2a166b4

Browse files
committed
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.
1 parent 01eee02 commit 2a166b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clevis/Sanity/simple-bind-luks/runtest.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ rlJournalStart
8787

8888
rlRun "packageVersion=$(rpm -q ${PACKAGE} --qf '%{name}-%{version}-%{release}\n')"
8989
if rlTestVersion "${packageVersion}" '>=' 'clevis-15-8'; then
90-
rlAssertGrep "Error communicating with the server http://localhost" $rlRun_LOG
90+
if rlIsRHEL; then
91+
rlAssertGrep "Error communicating with the server http://localhost" $rlRun_LOG
92+
else
93+
rlAssertGrep "Error communicating with server http://localhost" $rlRun_LOG
94+
fi
9195
else
9296
rlAssertGrep "Error communicating with the server!" $rlRun_LOG
9397
fi

0 commit comments

Comments
 (0)