tests: clean jail configuration after each test

This commit is contained in:
Jérémy Lecour 2021-02-08 14:13:10 +01:00 committed by Jérémy Lecour
parent 68a7da6b88
commit b7cddcac27
2 changed files with 3 additions and 1 deletions

View file

@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
* tests: clean jail configuration after each test
### Security ### Security
## [2.8.0] - 2020-11-28 ## [2.8.0] - 2020-11-28

View file

@ -20,7 +20,7 @@ setup() {
teardown() { teardown() {
remove_variable "/etc/default/bkctld" "BACKUP_DISK" remove_variable "/etc/default/bkctld" "BACKUP_DISK"
FORCE=1 /usr/lib/bkctld/bkctld-remove "${JAILNAME}" && rm -rf "${INCSPATH}" FORCE=1 /usr/lib/bkctld/bkctld-remove "${JAILNAME}" && rm -rf "${INCSPATH}" "/etc/evobackup/${JAILNAME}" "/etc/evobackup/${JAILNAME}.d"
} }
random_jail_name() { random_jail_name() {