From e7e64233c9078f03de13a6d8750c1daaa673a0c2 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 7 Feb 2023 20:39:56 +0100 Subject: 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. --- lib/tests/modules.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit 1.4.1