Skip to content

Commit

Permalink
Fix completion subcommand test
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Feb 23, 2023
1 parent dc08afc commit 0a081f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ func TestExecute_Completion(t *testing.T) {
os.Args = []string{"gup", "completion"}
Execute()

bash := filepath.Join(os.Getenv("HOME"), ".bash_completion")
bash := filepath.Join(os.Getenv("HOME"), ".bash_completions.d", cmdinfo.Name)
if runtime.GOOS == "windows" {
if file.IsFile(bash) {
t.Errorf("generate %s, however shell completion file is not generated on Windows", bash)
Expand Down

0 comments on commit 0a081f4

Please sign in to comment.