From ffd261bfffcb31b877277bf535db65e8a075666b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Wed, 7 Aug 2024 16:46:18 +0200 Subject: [PATCH] test_dnf4_mark(): disable all plugins when inspecting markings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When subscription-manager DNF plugins are enabled (e.g. on RHEL), they produce messages to the stdout on any DNF command execution. E.g. "Updating Subscription Management repositories.". Disable all plugins when inspecting package markings so prevent them from modifying the output. Signed-off-by: Tomáš Hozza --- test/run/test_stages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/run/test_stages.py b/test/run/test_stages.py index 7fec10c8..2e9b543b 100644 --- a/test/run/test_stages.py +++ b/test/run/test_stages.py @@ -541,6 +541,8 @@ class TestStages(test.TestBase): [ "dnf", "--installroot", tree, + # disable all plugins to prevent them from modifying the output + "--disableplugin", "*", "repoquery", "--installed", "--qf", "%{name},%{reason}\n" ],