From 66e08009b8254462cb2c454ff2320355633c20d6 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Tue, 10 Nov 2020 12:11:17 +0100 Subject: [PATCH 1/1] [tests] SQL write a readonly folder fixes on rhel8.4 for test_dnf_base and test_dnf_db_group libdnf._error.Error: SQLite error on "/var/lib/dnf/history.sqlite": Executing an SQL statement failed: attempt to write a readonly database =changelog= msg: fixes SQL write a readonly folder type: bugfix --- tests/api/test_dnf_base.py | 1 + tests/api/test_dnf_db_group.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/api/test_dnf_base.py b/tests/api/test_dnf_base.py index b1cf49fb..ca71b75c 100644 --- a/tests/api/test_dnf_base.py +++ b/tests/api/test_dnf_base.py @@ -14,6 +14,7 @@ from .common import TOUR_4_4 class DnfBaseApiTest(TestCase): def setUp(self): self.base = dnf.Base(dnf.conf.Conf()) + self.base.conf.persistdir = "/tmp/tests" def tearDown(self): self.base.close() diff --git a/tests/api/test_dnf_db_group.py b/tests/api/test_dnf_db_group.py index 447fd121..e1828cb4 100644 --- a/tests/api/test_dnf_db_group.py +++ b/tests/api/test_dnf_db_group.py @@ -12,6 +12,7 @@ from .common import TestCase class DnfRPMTransactionApiTest(TestCase): def setUp(self): self.base = dnf.Base(dnf.conf.Conf()) + self.base.conf.persistdir = "/tmp/tests" self.base.fill_sack(False, False) self.base.resolve() self.rpmTrans = self.base.transaction -- 2.26.2