tests: use FORCE flag to remove jail in tests

This commit is contained in:
Jérémy Lecour 2020-11-13 15:32:19 +01:00 committed by Jérémy Lecour
parent 3c5a646ae3
commit f9018738b9
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ LOGLEVEL="${LOGLEVEL:-6}"
CRITICAL="${CRITICAL:-48}"
WARNING="${WARNING:-24}"
DUC=$(command -v duc-nox || command -v duc)
FORCE=0
FORCE="${FORCE:-0}"
show_version() {
cat <<END

View file

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