From 5ffb0f1f818ff0d435b16a4934a24c6277d3fde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sun, 19 Feb 2023 11:19:00 +0100 Subject: [PATCH] tests: fix gnupg stub (#3685) systemd now depends on `gnupg.override`, so we need a stub for systemd too. --- tests/modules/programs/gpg/mutable-keyfiles.nix | 1 + tests/modules/services/gpg-agent/default-homedir.nix | 1 + tests/modules/services/gpg-agent/override-homedir.nix | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/modules/programs/gpg/mutable-keyfiles.nix b/tests/modules/programs/gpg/mutable-keyfiles.nix index 588c9070..d2028e4b 100644 --- a/tests/modules/programs/gpg/mutable-keyfiles.nix +++ b/tests/modules/programs/gpg/mutable-keyfiles.nix @@ -14,6 +14,7 @@ }; test.stubs.gnupg = { }; + test.stubs.systemd = { }; # depends on gnupg.override nmt.script = '' assertFileContains activate "export GNUPGHOME='/home/hm-user/.gnupg'" diff --git a/tests/modules/services/gpg-agent/default-homedir.nix b/tests/modules/services/gpg-agent/default-homedir.nix index faf15374..9e21eb6d 100644 --- a/tests/modules/services/gpg-agent/default-homedir.nix +++ b/tests/modules/services/gpg-agent/default-homedir.nix @@ -9,6 +9,7 @@ with lib; programs.gpg.enable = true; test.stubs.gnupg = { }; + test.stubs.systemd = { }; # depends on gnupg.override nmt.script = '' in="${config.systemd.user.sockets.gpg-agent.Socket.ListenStream}" diff --git a/tests/modules/services/gpg-agent/override-homedir.nix b/tests/modules/services/gpg-agent/override-homedir.nix index 23d9f876..1a314e41 100644 --- a/tests/modules/services/gpg-agent/override-homedir.nix +++ b/tests/modules/services/gpg-agent/override-homedir.nix @@ -12,6 +12,7 @@ with lib; }; test.stubs.gnupg = { }; + test.stubs.systemd = { }; # depends on gnupg.override nmt.script = '' in="${config.systemd.user.sockets.gpg-agent.Socket.ListenStream}"