tests: use FORCE flag to remove jail in tests
This commit is contained in:
parent
3c5a646ae3
commit
f9018738b9
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue