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:
parent
74dccef004
commit
d54dfbf879
2 changed files with 16 additions and 0 deletions
|
@ -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 ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue