1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

addFlag: test that alias flags are allowed

This commit is contained in:
detroyejr 2024-07-19 15:49:56 -04:00
parent 74dccef004
commit d54dfbf879
2 changed files with 16 additions and 0 deletions

View file

@ -58,3 +58,7 @@ fi
# Test that unknown settings are warned about
out="$(expectStderr 0 nix eval --option foobar baz --expr '""' --raw)"
[[ "$(echo "$out" | grep foobar | wc -l)" = 1 ]]
# Test flag alias
out="$(nix eval --expr '{}' --build-cores 1)"
[[ "$(echo "$out" | wc -l)" = 1 ]]