mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-02 13:33:11 +00:00
chore: pull out common setup as separate helper
This commit is contained in:
parent
b5893414cc
commit
1842599f1a
7
test/test_helper/common_setup.bash
Normal file
7
test/test_helper/common_setup.bash
Normal 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"
|
||||
}
|
||||
@ -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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user