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:
Robert Hensing 2023-02-07 20:39:56 +01:00
parent aa6d45958b
commit e7e64233c9

View File

@ -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