From e0ded8f4ba1529fdde28ff027d370c883864fcc8 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Tue, 4 Aug 2020 00:08:43 +0200 Subject: lib/modules: Fix freeform modules when there's no definitions --- lib/tests/modules.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/tests') diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index 848b10e17f670..943deebe3c093 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -213,6 +213,8 @@ checkConfigError 'The option value .* in .* is not of type .*' \ ## Freeform modules # Assigning without a declared option should work checkConfigOutput 24 config.value ./freeform-attrsOf.nix ./define-value-string.nix +# No freeform assigments shouldn't make it error +checkConfigOutput '{ }' config ./freeform-attrsOf.nix # but only if the type matches checkConfigError 'The option value .* in .* is not of type .*' config.value ./freeform-attrsOf.nix ./define-value-list.nix # and properties should be applied -- cgit 1.4.1