From e7e64233c9078f03de13a6d8750c1daaa673a0c2 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 7 Feb 2023 20:39:56 +0100 Subject: [PATCH] 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(+) diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index c1cf0a94a1b3..2af58ff5db9f 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