mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
lib/tests/modules.sh: Unload implicit modules
I had some trouble understanding this. Let's try to keep new tests a bit more stateless and explicit.
This commit is contained in:
parent
aa6d45958b
commit
e7e64233c9
@ -166,6 +166,7 @@ checkConfigError 'The option .* does not exist. Definition values:\n\s*- In .*'
|
|||||||
checkConfigOutput '^true$' "$@" ./define-module-check.nix
|
checkConfigOutput '^true$' "$@" ./define-module-check.nix
|
||||||
|
|
||||||
# Check coerced value.
|
# Check coerced value.
|
||||||
|
set --
|
||||||
checkConfigOutput '^"42"$' config.value ./declare-coerced-value.nix
|
checkConfigOutput '^"42"$' config.value ./declare-coerced-value.nix
|
||||||
checkConfigOutput '^"24"$' config.value ./declare-coerced-value.nix ./define-value-string.nix
|
checkConfigOutput '^"24"$' config.value ./declare-coerced-value.nix ./define-value-string.nix
|
||||||
checkConfigError 'A definition for option .* is not.*string or signed integer convertible to it.*. Definition values:\n\s*- In .*: \[ \]' config.value ./declare-coerced-value.nix ./define-value-list.nix
|
checkConfigError 'A definition for option .* is not.*string or signed integer convertible to it.*. Definition values:\n\s*- In .*: \[ \]' config.value ./declare-coerced-value.nix ./define-value-list.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user