Skip to content

Commit

Permalink
Fix failing test due to bats not preserving ret value
Browse files Browse the repository at this point in the history
- Related to #121. Didn't notice this was failing until upgrading to
  bats 1.8.2 and the related IFS issue was fixed.
  • Loading branch information
rcaloras committed Nov 16, 2022
1 parent 9c1e17b commit a44754f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bash-preexec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ set_exit_code_and_run_precmd() {
IFS=_
name_with_underscores_2() { parts=(2_2); echo $parts; }
precmd_functions+=(name_with_underscores_2)
run '__bp_precmd_invoke_cmd'
run set_exit_code_and_run_precmd
[ $status -eq 0 ]
[ "$output" == "2 2" ]
}
Expand Down

0 comments on commit a44754f

Please sign in to comment.