diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-02-07 20:39:56 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-05-06 18:22:50 +0200 |
commit | e7e64233c9078f03de13a6d8750c1daaa673a0c2 (patch) | |
tree | 3aedcdfc7f293f0328a426200931142555df7549 /lib | |
parent | aa6d45958b02edaa846b1aac0516c5903d0f3945 (diff) |
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.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/tests/modules.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index c1cf0a94a1b38..2af58ff5db9f0 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -166,6 +166,7 @@ checkConfigError 'The option .* does not exist. Definition values:\n\s*- In .*' checkConfigOutput '^true$' "$@" ./define-module-check.nix # Check coerced value. +set -- checkConfigOutput '^"42"$' config.value ./declare-coerced-value.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 |