Skip to content

Commit

Permalink
Test the tilde expansion for the flake completion
Browse files Browse the repository at this point in the history
Also add a disabled test for when the `--override-input` flag comes
*before* the flake ref
  • Loading branch information
thufschmitt committed Jul 12, 2022
1 parent 07e14d3 commit 21c443d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/completions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ popd

# Input override completion
[[ "$(NIX_GET_COMPLETIONS=4 nix build ./foo --override-input '')" == $'normal\na\t' ]]
## With tilde expansion
[[ "$(HOME=$PWD NIX_GET_COMPLETIONS=4 nix build '~/foo' --override-input '')" == $'normal\na\t' ]]
## Out of order – not working atm. Should have been fixed by #6693 but apparently not
# [[ "$(NIX_GET_COMPLETIONS=3 nix build --override-input '' ./foo)" == $'normal\na\t' ]]

# Cli flag completion
NIX_GET_COMPLETIONS=2 nix build --log-form | grep -- "--log-format"
Expand Down

0 comments on commit 21c443d

Please sign in to comment.