fix: fail test exec if at least one test fail

This commit is contained in:
Maciej Sypien 2024-09-21 12:19:59 +02:00
parent e5b23dad6b
commit 284ffbf68f
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
4 changed files with 24 additions and 3 deletions

View file

@ -29,7 +29,7 @@ EOF
echo "Current DIR: $CURRENT_DIR"
# link current repo to plugin list
ln -sf ~/.tmux/plugins/tmux-gruvbox/ "$CURRENT_DIR/../"
ln -sf ~/.tmux/plugins/tmux-gruvbox/ "$CURRENT_DIR/../../"
helper_install_tpm_plugins
@ -39,7 +39,7 @@ EOF
# get status of something from theme
_status_left_current=$(tmux show-option -gqv status-left)
if [[ "$STATUS_LEFT_DEFAULT" != "$_status_left_current" ]]; then
helper_print_fail "status-left did not match"
helper_print_fail_and_exit "status-left did not match" # fail fast
else
helper_print_success "status-left match"
fi