File: 0007-tests-set-default-installroot-in-tmp.patch

package info (click to toggle)
dnf 4.14.0-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,216 kB
  • sloc: python: 27,253; xml: 771; sh: 131; makefile: 37
file content (25 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 217deccda1a09b0a37a067f7862900ad4f98e0b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?=
 <frederic.pierret@qubes-os.org>
Date: Sat, 14 Jan 2023 19:44:30 +0100
Subject: [PATCH] tests: set default installroot in /tmp

---
 tests/api/test_dnf_base.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/api/test_dnf_base.py b/tests/api/test_dnf_base.py
index 19754b07..866e5e69 100644
--- a/tests/api/test_dnf_base.py
+++ b/tests/api/test_dnf_base.py
@@ -27,6 +27,7 @@ def conf_with_empty_plugins():
 class DnfBaseApiTest(TestCase):
     def setUp(self):
         self.base = dnf.Base(dnf.conf.Conf())
+        self.base.conf.installroot = "/tmp/installroot"
         self.base.conf.persistdir = "/tmp/tests"
 
     def tearDown(self):
-- 
2.35.1