From 78afc2fa741a93df3c73cedd26f09ee77465dc71 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 30 Oct 2021 20:35:50 +0200 Subject: [PATCH] git: stub test dependency on msmtp --- tests/modules/programs/git/git-with-msmtp.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/modules/programs/git/git-with-msmtp.nix b/tests/modules/programs/git/git-with-msmtp.nix index abe32af8e..dc6ba465e 100644 --- a/tests/modules/programs/git/git-with-msmtp.nix +++ b/tests/modules/programs/git/git-with-msmtp.nix @@ -16,6 +16,8 @@ with lib; home.stateVersion = "20.09"; + test.stubs.msmtp = { }; + nmt.script = '' function assertGitConfig() { local value @@ -29,12 +31,7 @@ with lib; assertFileExists home-files/.config/git/config assertFileContent home-files/.config/git/config \ - ${ - pkgs.substituteAll { - inherit (pkgs) msmtp; - src = ./git-with-msmtp-expected.conf; - } - } + ${./git-with-msmtp-expected.conf} assertGitConfig "sendemail.hm@example.com.from" "hm@example.com" assertGitConfig "sendemail.hm-account.from" "hm@example.org"