tests: reduce number of downloads

This replaces some derivation outputs by simple strings rather than
full Nix store paths. This removes the need to download the whole
derivation when all we need is a static string.
This commit is contained in:
Robert Helgesson
2019-10-08 22:46:27 +02:00
parent a177d0282f
commit 797c77a00a
19 changed files with 259 additions and 67 deletions

View File

@@ -1,6 +1,6 @@
# -*- mode: sh -*-
. "@homeDirectory@/.nix-profile/etc/profile.d/hm-session-vars.sh"
. "/home/testuser/.nix-profile/etc/profile.d/hm-session-vars.sh"
export V1="v1"
export V2="v2-v1"

View File

@@ -13,16 +13,13 @@ with lib;
};
};
home.homeDirectory = "/home/testuser";
nmt.script = ''
assertFileExists home-files/.profile
assertFileContent \
home-files/.profile \
${
pkgs.substituteAll {
src = ./session-variables-expected.txt;
inherit (config.home) homeDirectory;
}
}
${./session-variables-expected.txt}
'';
};
}