Skip to content

Commit

Permalink
workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Feb 14, 2022
1 parent 90f18df commit 9c6970b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/bash_it/bash_it.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function local_setup_file() {
# don't load any libraries as the tests here test the *whole* kit
}

function local_setup() {
: "${PROMPT_COMMAND:=}" "${BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE:=}"
}

@test "bash-it: verify that the test fixture is available" {
assert_file_exist "${BASH_IT?}/aliases/available/a.aliases.bash"
assert_file_exist "${BASH_IT?}/aliases/available/b.aliases.bash"
Expand Down
2 changes: 1 addition & 1 deletion test/completion/bash-it.completion.bats
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function __check_completion() {

# Word index of the last word
COMP_CWORD=$(( ${#COMP_WORDS[@]} - 1 ))

COMP_WORDS+=('') # arg
# Run the Bash-it completion function
_bash-it

Expand Down
1 change: 1 addition & 0 deletions test/lib/helpers.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function local_setup_file() {
}

function local_setup() {
: "${BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE:=}"
# Copy the test fixture to the Bash-it folder
cp -RP "${BASH_IT?}/test/fixtures/bash_it"/* "${BASH_IT?}/"
}
Expand Down
1 change: 1 addition & 0 deletions test/lib/preexec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load ../test_helper
function local_setup {
setup_test_fixture
export __bp_enable_subshells=yas
export HISTCONTROL=""
}

@test "vendor preexec: __bp_install_after_session_init() without existing" {
Expand Down
2 changes: 2 additions & 0 deletions test/lib/utilities.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"

function local_setup_file() {
setup_libs "helpers"
# shellcheck disable=SC2034
BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=""
}

@test "_bash-it-component-item-is-enabled() - for a disabled item" {
Expand Down

0 comments on commit 9c6970b

Please sign in to comment.