Skip to content

Commit 3e5fde0

Browse files
author
Damien Cavagnini
committed
fix: some tests can not be executed multiple times
1 parent 78f5b67 commit 3e5fde0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/hardening/find_ungrouped_files.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ test_audit() {
3838
register_test retvalshouldbe 0
3939
register_test contain "No ungrouped files found"
4040
run resolved "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
41+
42+
rm -rf /home/secaudit/6.1.12/
4143
}

tests/hardening/find_unowned_files.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ test_audit() {
3838
register_test retvalshouldbe 0
3939
register_test contain "No unowned files found"
4040
run resolved "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
41+
42+
rm -rf /home/secaudit/6.1.11
4143
}

0 commit comments

Comments
 (0)