diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-07-13 10:25:28 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-07-13 10:25:28 +0200 |
commit | d34a333e2ea6f7c3a8f86b821edd0542661d036a (patch) | |
tree | e982437a1fbee4eec3e430871455faa870c27ff1 /tests | |
parent | 21c443d4fd0dc4e28f4af085aef711d5ce30c5e8 (diff) |
Fix the “out of order” completion test
`--override-input` id snarky because it takes two arguments, so it
doesn't play well when completed in the middle of the CLI (since the
argument just after gets interpreted as its second argument). So use
`--update-input` instead
Diffstat (limited to 'tests')
-rw-r--r-- | tests/completions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/completions.sh b/tests/completions.sh index a510e28b0..75b567146 100644 --- a/tests/completions.sh +++ b/tests/completions.sh @@ -34,8 +34,8 @@ popd [[ "$(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' ]] +## Out of order +[[ "$(NIX_GET_COMPLETIONS=3 nix build --update-input '' ./foo)" == $'normal\na\t' ]] # Cli flag completion NIX_GET_COMPLETIONS=2 nix build --log-form | grep -- "--log-format" |