Skip to content

Commit ff46e75

Browse files
committed
tests: add useful attrs to test passthru
1 parent 1f56d94 commit ff46e75

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/main.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ let
3434
];
3535
};
3636
in
37-
configuration.config.build.test;
37+
configuration.config.build.test.overrideAttrs (old: {
38+
passthru =
39+
old.passthru or { }
40+
// builtins.removeAttrs configuration [ "_type" ]
41+
// {
42+
inherit file module;
43+
};
44+
});
3845

3946
# List of files containing configurations
4047
testFiles = fetchTests ./test-sources;

0 commit comments

Comments
 (0)