From a3b5e380cdec7bc98495cc5482b9783c79e87854 Mon Sep 17 00:00:00 2001 From: Frantisek Hrdina Date: Fri, 14 Apr 2023 10:43:20 +0200 Subject: [PATCH] Fixing initscript test for centos-stream /CoreOS/postfix/Sanity/initscript --- Sanity/initscript/runtest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sanity/initscript/runtest.sh b/Sanity/initscript/runtest.sh index 8784302..94184bf 100755 --- a/Sanity/initscript/runtest.sh +++ b/Sanity/initscript/runtest.sh @@ -35,7 +35,7 @@ STATUS_LOG="test.log" SERVICE=$PACKAGE rlJournalStart - + rlPhaseStartSetup rlAssertRpm $PACKAGE rlRun "useradd testuserqa" 0 "Add test user" @@ -92,7 +92,7 @@ rlJournalStart rlLog ">>>>>>>>> insufficient rights" # Polkit rpm installed is causing that running with insufficient rights returns 1 instead of 4 - if ( (rlIsRHEL '>=9' || rlIsFedora) && ! rlCheckRpm 'polkit' ) || rlIsRHEL '<=6' ; then + if ( (rlIsRHEL '>=9' || rlIsFedora || rlIsCentOS '>=9') && ! rlCheckRpm 'polkit' ) || rlIsRHEL '<=6' ; then ACCESS_DENIED_EXIT_STATUS=4 else ACCESS_DENIED_EXIT_STATUS=1 @@ -116,7 +116,7 @@ rlJournalStart rlPhaseStartCleanup rlServiceRestore $SERVICE rlServiceRestore sendmail - rlRun "userdel -fr testuserqa" 0 "Remove test user" + rlRun "userdel -fr testuserqa" 0 "Remove test user" rlRun "popd" rlRun "rm -r $TmpDir" rlPhaseEnd