From a44754f5c3ca76b0330324680670cb8574d2768f Mon Sep 17 00:00:00 2001 From: Ryan Caloras Date: Wed, 16 Nov 2022 12:01:49 -0500 Subject: [PATCH] Fix failing test due to bats not preserving ret value - Related to #121. Didn't notice this was failing until upgrading to bats 1.8.2 and the related IFS issue was fixed. --- test/bash-preexec.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bash-preexec.bats b/test/bash-preexec.bats index 6f14ad4..b8d783c 100644 --- a/test/bash-preexec.bats +++ b/test/bash-preexec.bats @@ -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" ] }