fix suites test to match new mkSuites

This commit is contained in:
Pacman99 2021-04-26 13:30:10 -07:00
parent b766c693ab
commit 2a7d9e7109

View file

@ -71,23 +71,19 @@ lib.runTests {
}; };
}; };
testSuites = testSuites = {
let expr = os.mkSuites {
profiles = os.mkProfileAttrs (toString ./profiles); suites = { profiles, ... }: with profiles; {
users = ""; bar = [ foo ];
userProfiles = ""; };
suites = { profiles, ... }: { profiles = [ (./profiles) ];
system.bar = [ profiles.foo ];
}; };
in
{
expr = os.mkSuites { inherit profiles users userProfiles suites; };
expected = { expected = {
system = { bar = [ (toString ./profiles/foo) ];
bar = [ profiles.foo.default ]; allProfiles = [
allProfiles = [ profiles.foo.default profiles.t.default ]; (toString ./profiles/foo)
allUsers = [ ]; (toString ./profiles/t)
}; ];
}; };
}; };
} }