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
* tests: clean jail configuration after each test
### Security
## [2.8.0] - 2020-11-28

View File

@ -20,7 +20,7 @@ setup() {
teardown() {
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() {