[PATCH v7 33/49] test: completion: add missing test
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 1, 2023, 08:46 UTC
- Message-ID
- <20230401084626.304356-34-felipe.contreras@gmail.com>
- In-Reply-To
- <20230401084626.304356-1-felipe.contreras@gmail.com>
Once the correct suffix in __git_complete_config_variable_name() is set, we can add the test again.
Now it should work even in bash < 4.0.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- t/t9902-completion.sh | 7 +++++++ t/t9904-completion-zsh.sh | 7 +++++++ 2 files changed, 14 insertions(+)
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index a2f2f9dc09..c33543191f 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -2533,6 +2533,13 @@ test_expect_success 'git config - value' ' EOF ' +test_expect_success 'git config - direct completions' ' + test_completion "git config branch.autoSetup" <<-\EOF + branch.autoSetupMerge Z + branch.autoSetupRebase Z + EOF +' + test_expect_success 'git -c - section' ' test_completion "git -c br" <<-\EOF branch.Z diff --git a/t/t9904-completion-zsh.sh b/t/t9904-completion-zsh.sh index c0be5573ee..1c694bec0d 100755 --- a/t/t9904-completion-zsh.sh +++ b/t/t9904-completion-zsh.sh @@ -1090,6 +1090,13 @@ test_expect_success 'git config - value' ' EOF ' +test_expect_success 'git config - direct completions' ' + test_completion "git config branch.autoSetup" <<-\EOF + branch.autoSetupMerge Z + branch.autoSetupRebase Z + EOF +' + test_expect_success 'git -c - section' ' test_completion "git -c br" <<-\EOF branch.Z
-- 2.33.0