Skip to content

Commit

Permalink
Use temporary keydir too, when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
afb committed Sep 4, 2014
1 parent 3b0a677 commit 407a7ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/plugins/test_aptchannelsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 407a7ec

Please sign in to comment.