crowdsec/tests/lib/teardown_file.sh
mmetc af8c55330d
[wip] bats changes for modular fixtures (#1371)
* target: tests/.environment.sh
* don't pass BIN_DIR around
* manage db backup/restore separately
* don't export CONFIG_DIR, DATA_DIR (derive path locations from
CONFIG_YAML); redirect stdout, stderr to &3 by default in setup_file,
teardown_file
2022-03-18 10:13:12 +01:00

8 lines
167 B
Bash

# any stdout, stderr from now on will go to &3
eval "$(debug)"
# ensure we don't leave crowdsec running if tests are broken or interrupted
./instance-crowdsec stop