diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-06-16 21:43:12 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-06-16 22:08:16 +0200 |
commit | 36ea2bbfe81ccf1118fd0ef66b13868fa3cc27e4 (patch) | |
tree | cce1f4b7a5e559b6daec93ad083c6dc27b55e54f /lib/tests/modules.sh | |
parent | a742767bafecf0644585309b744e24f90cdff207 (diff) |
lib.modules: Add mergeAttrDefinitionsWithPrio
This will let us make assertions involving _module.args.pkgs, which is not an option but a value attribute, and therefore doesn't have its own highestPrio to inspect. The new function gives us that info.
Diffstat (limited to 'lib/tests/modules.sh')
-rwxr-xr-x | lib/tests/modules.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index 7aebba6b589eb..a60228198fd7c 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -61,6 +61,8 @@ checkConfigError() { # Shorthand meta attribute does not duplicate the config checkConfigOutput '^"one two"$' config.result ./shorthand-meta.nix +checkConfigOutput '^true$' config.result ./test-mergeAttrDefinitionsWithPrio.nix + # Check boolean option. checkConfigOutput '^false$' config.enable ./declare-enable.nix checkConfigError 'The option .* does not exist. Definition values:\n\s*- In .*: true' config.enable ./define-enable.nix |