chore: pull out common setup as separate helper

This commit is contained in:
gmega 2025-06-18 09:57:35 -03:00
parent b5893414cc
commit 1842599f1a
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
2 changed files with 9 additions and 5 deletions

View File

@ -0,0 +1,7 @@
common_setup() {
bats_require_minimum_version 1.12.0
load test_helper/bats-support/load
load test_helper/bats-assert/load
export LIB_SRC="${BATS_TEST_DIRNAME}/../src"
}

View File

@ -1,9 +1,6 @@
setup() {
bats_require_minimum_version 1.12.0
export LIB_SRC="${BATS_TEST_DIRNAME}/../src"
load "${BATS_TEST_DIRNAME}/test_helper/bats-support/load.bash"
load "${BATS_TEST_DIRNAME}/test_helper/bats-assert/load.bash"
load test_helper/common_setup
common_setup
source "${LIB_SRC}/procmon.bash"
}