summary refs log tree commit diff
path: root/lib/tests/modules.sh
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-08-04 00:08:43 +0200
committerSilvan Mosberger <contact@infinisil.com>2020-08-10 17:27:33 +0200
commite0ded8f4ba1529fdde28ff027d370c883864fcc8 (patch)
treecc4074076db653bdfa106d1a93a0ad90211eac64 /lib/tests/modules.sh
parent446d80d28deb9929aca2a70699b3f32c2f1297d5 (diff)
downloadnixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.tar
nixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.tar.gz
nixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.tar.bz2
nixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.tar.lz
nixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.tar.xz
nixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.tar.zst
nixpkgs-e0ded8f4ba1529fdde28ff027d370c883864fcc8.zip
lib/modules: Fix freeform modules when there's no definitions
Diffstat (limited to 'lib/tests/modules.sh')
-rwxr-xr-xlib/tests/modules.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh
index 848b10e17f6..943deebe3c0 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