From 407a7eca766431257dcd1da15175cc36a1bb22d0 Mon Sep 17 00:00:00 2001 From: Anders F Bjorklund Date: Thu, 4 Sep 2014 23:55:58 +0200 Subject: [PATCH] Use temporary keydir too, when testing --- tests/plugins/test_aptchannelsync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/plugins/test_aptchannelsync.py b/tests/plugins/test_aptchannelsync.py index 950123a..9e88250 100644 --- a/tests/plugins/test_aptchannelsync.py +++ b/tests/plugins/test_aptchannelsync.py @@ -45,14 +45,17 @@ def setUp(self): self.apt_dir = self.makeDir() self.sources_dir = os.path.join(self.apt_dir, "sources.list.d") self.keyring_file = os.path.join(self.apt_dir, "trusted.gpg") + self.keydir_file = os.path.join(self.apt_dir, "trusted.gpg.d") self.trustdb_file = os.path.join(self.apt_dir, "trustdb.gpg") os.mkdir(self.sources_dir) sysconf.set("sync-apt-keyring", self.keyring_file) + sysconf.set("sync-apt-keydir", self.keydir_file) sysconf.set("sync-apt-trustdb", self.trustdb_file) def tearDown(self): sysconf.remove("channels") sysconf.remove("sync-apt-keyring") + sysconf.remove("sync-apt-keydir") sysconf.remove("sync-apt-trustdb") def test_sychronize_sources_list(self):