File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ set_exit_code_and_run_precmd() {
7474@test " __bp_install should remove trap logic and itself from PROMPT_COMMAND" {
7575 __bp_install_after_session_init
7676
77- [[ " $PROMPT_COMMAND " == * " trap - DEBUG" * ]] || return 1
78- [[ " $PROMPT_COMMAND " == * " __bp_install" * ]] || return 1
77+ # Assert that before running, the command contains the install string, and
78+ # afterwards it does not
79+ [[ " $PROMPT_COMMAND " == * " $__bp_install_string " * ]] || return 1
7980
8081 eval_PROMPT_COMMAND
8182
82- [[ " $PROMPT_COMMAND " != * " trap DEBUG" * ]] || return 1
83- [[ " $PROMPT_COMMAND " != * " __bp_install" * ]] || return 1
83+ [[ " $PROMPT_COMMAND " != * " $__bp_install_string " * ]] || return 1
8484}
8585
8686@test " __bp_install should preserve an existing DEBUG trap" {
You can’t perform that action at this time.
0 commit comments