Skip to content

Commit

Permalink
(test suite): Don't insist on loading all completions dynamically
Browse files Browse the repository at this point in the history
Some completions may already be defined from loading the main
bash_completion script, so don't insist __load_completion to always
return true when asserting presence of a completion.
  • Loading branch information
scop committed May 5, 2017
1 parent d0c4410 commit f845109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/library.exp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ proc init_tcl_bash_globals {} {
# @return boolean True (1) if completion is installed, False (0) if not.
proc assert_install_completion_for {command} {
set test "$command should have completion installed in bash"
set cmd "__load_completion $command && complete -p $command &> /dev/null && echo -n 0 || echo -n 1"
set cmd "__load_completion $command ; complete -p $command &> /dev/null && echo -n 0 || echo -n 1"
send "$cmd\r"
expect "$cmd\r\n"
expect {
Expand Down

0 comments on commit f845109

Please sign in to comment.