45 lines
1.7 KiB
Diff
45 lines
1.7 KiB
Diff
|
From 2a69d10da676d067bf42b936114d3785fd1c37da Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= <thozza@redhat.com>
|
||
|
Date: Thu, 25 Jul 2024 10:27:44 +0200
|
||
|
Subject: [PATCH] Test: fix dnf4.mark stage test with DNF5
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
DNF5 contains a breaking change in the repoquery --qf output,
|
||
|
specifically it does not include the trailing newline. This breaks the
|
||
|
test case e.g. on the latest Fedora Rawhide [1].
|
||
|
|
||
|
As a fix, explicitly use 'dnf4' for now, until the inconsistency is
|
||
|
fixed in the upstream [2].
|
||
|
|
||
|
[1] https://artifacts.dev.testing-farm.io/3a3a2898-0a6a-42eb-8792-660f03c35c3c/
|
||
|
[2] https://github.com/rpm-software-management/dnf5/issues/709
|
||
|
|
||
|
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
|
||
|
---
|
||
|
test/run/test_stages.py | 5 ++++-
|
||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/test/run/test_stages.py b/test/run/test_stages.py
|
||
|
index a4d78b7e..ca224f07 100644
|
||
|
--- a/test/run/test_stages.py
|
||
|
+++ b/test/run/test_stages.py
|
||
|
@@ -537,9 +537,12 @@ class TestStages(test.TestBase):
|
||
|
assert os.path.isdir(tree)
|
||
|
|
||
|
# we're going to verify that packages in the tree are marked according to
|
||
|
+ # Explicitly use 'dnf4' for now, because 'dnf5' contains a breaking change
|
||
|
+ # in the repoquery --qf output, specifically it does not add a trailing newline.
|
||
|
+ # We can use plan 'dnf' again once https://github.com/rpm-software-management/dnf5/issues/709 is fixed.
|
||
|
r = subprocess.run(
|
||
|
[
|
||
|
- "dnf",
|
||
|
+ "dnf4",
|
||
|
"--installroot", tree,
|
||
|
"repoquery", "--installed",
|
||
|
"--qf", "%{name},%{reason}"
|
||
|
--
|
||
|
2.45.2
|
||
|
|