system tests: fix gpgv warning when verifying signatures

gpgv: can't allocate lock for '/home/runner/.gnupg/aptlytest.gpg'

this forced running local system tessts in /home/runner, as it is
in the gitgub actions.
This commit is contained in:
André Roth
2024-08-04 02:34:26 +02:00
parent 52faf78324
commit b342af0d96
18 changed files with 9 additions and 26 deletions
+1
View File
@@ -275,6 +275,7 @@ class BaseTest(object):
if self.fixtureGpg:
self.run_cmd([self.gpgFinder.gpg, "--no-default-keyring", "--trust-model", "always", "--batch", "--keyring", "aptlytest.gpg", "--import"] +
[os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "files", key) for key in self.fixtureGpgKeys])
self.run_cmd(["chmod", "400", "/home/runner/.gnupg/aptlytest.gpg"])
if hasattr(self, "fixtureCmds"):
for cmd in self.fixtureCmds: