From 931688473e66dbc457f08a5c05a977d1587c9d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Wed, 19 Feb 2025 14:09:35 +0100 Subject: [PATCH] Set relevancy for valgrind in basic test --- Sanity/basic/main.fmf | 3 +++ Sanity/basic/test.sh | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Sanity/basic/main.fmf b/Sanity/basic/main.fmf index 05fef4c..2186b4c 100644 --- a/Sanity/basic/main.fmf +++ b/Sanity/basic/main.fmf @@ -15,6 +15,9 @@ enabled: true tag: - Tier1 tier: '1' +link: + - verifies: https://issues.redhat.com/browse/RHEL-39379 + - verifies: https://issues.redhat.com/browse/RHEL-80167 adjust: - enabled: false when: distro < rhel-7 diff --git a/Sanity/basic/test.sh b/Sanity/basic/test.sh index 6e154e9..0290188 100755 --- a/Sanity/basic/test.sh +++ b/Sanity/basic/test.sh @@ -27,9 +27,12 @@ rlJournalStart rlAssertGrep "Device is unlocked" lockdev.log rlPhaseEnd - rlPhaseStartTest "memory leaks check" - rlRun "valgrind --leak-check=full --error-exitcode=1 ./test_lockdev" - rlPhaseEnd + # memory leaks not fixed on rhel8/c8s and fc42 and older + if rlIsRHEL '>=9.6' || rlIsCentOS '>=9' || rlIsFedora '>=43'; then + rlPhaseStartTest "memory leaks check" + rlRun "valgrind --leak-check=full --error-exitcode=1 ./test_lockdev" + rlPhaseEnd + fi rlPhaseStartCleanup rlRun "popd"