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

@ -1,6 +1,7 @@
#!/bin/bash
helper_teardown() {
echo "TEARDOWN"
rm -rf ~/.tmux.conf
rm -rf ~/.tmux/
tmux kill-server >/dev/null 2>&1
@ -11,6 +12,7 @@ helper_tearup_linux() {
echo "NOT LINUX. Failed & exit."
exit 1
fi
echo "TEARUP LINUX"
# install software
sudo apt update -y
@ -45,3 +47,8 @@ helper_print_success_and_exit() {
helper_install_tpm_plugins() {
bash -c "${HOME}/.tmux/plugins/tpm/scripts/install_plugins.sh install_plugins"
}
helper_get_project_root_dir() {
_current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "${_current_dir}/../"
}