From b7cddcac27466903bb7dd580dadf6957efeec05d Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 8 Feb 2021 14:13:10 +0100 Subject: [PATCH] tests: clean jail configuration after each test --- CHANGELOG.md | 2 ++ test/test_helper.bash | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee794f8..a1a622b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/test/test_helper.bash b/test/test_helper.bash index 386180b..d14c6ee 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -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() {