diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-07-12 09:37:57 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-07-12 09:48:25 +0200 |
commit | 21c443d4fd0dc4e28f4af085aef711d5ce30c5e8 (patch) | |
tree | debd28a5307b7d4e95347866189764fda8e132b3 /tests/completions.sh | |
parent | 07e14d3ef09e7852fce3a3850cd50eea032e3753 (diff) |
Test the tilde expansion for the flake completion
Also add a disabled test for when the `--override-input` flag comes
*before* the flake ref
Diffstat (limited to 'tests/completions.sh')
-rw-r--r-- | tests/completions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/completions.sh b/tests/completions.sh index b7bb31aea..a510e28b0 100644 --- a/tests/completions.sh +++ b/tests/completions.sh @@ -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" |