1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

tests/functional: test both clis warn on unknown settings

This commit is contained in:
Cole Helbling 2024-05-14 12:13:14 -07:00
parent 2f0031aedc
commit 06e13465c5
2 changed files with 13 additions and 0 deletions

View file

@ -52,3 +52,7 @@ fi
# Test --arg-from-stdin.
[[ "$(echo bla | nix eval --raw --arg-from-stdin foo --expr '{ foo }: { inherit foo; }' foo)" = bla ]]
# Test that unknown settings are warned about
out="$(expectStderr 0 nix eval --option foobar baz --expr '""' --raw)"
[[ "$(echo "$out" | grep foobar | wc -l)" = 1 ]]