261: profilesTest/mkHosts: include host's configuration r=blaggacao a=Pacman99

Now that profiles test is done dynamically - first available host - we likely need to include the host configuration itself. I have profiles that depend on the domain being set, which how I ran into this, and I think other problems might occur if we don't include the full host in the profiles test.

targeting core, since its a small bug fix and was planned to make into a release.

Co-authored-by: Pacman99 <pachum99@gmail.com>
This commit is contained in:
bors[bot] 2021-04-24 21:45:12 +00:00 committed by GitHub
commit 82b73cf63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ let
lib = { lib = {
lib = { inherit specialArgs; }; lib = { inherit specialArgs; };
lib.testModule = { lib.testModule = {
imports = builtins.attrValues modules; imports = [ local ] ++ builtins.attrValues modules;
}; };
}; };
in in

View File

@ -48,7 +48,7 @@ let
}; };
testScript = '' testScript = ''
machine.systemctl("is-system-running --wait") ${host.config.networking.hostName}.systemctl("is-system-running --wait")
''; '';
}; };