Skip to content
Snippets Groups Projects
Commit 7b8c353e authored by Frederic Danis's avatar Frederic Danis
Browse files

Fix tmp dirs removal

parent 77261179
No related branches found
No related tags found
3 merge requests!14Backport Bind mount malicious library to test unauthorized access,!13Backport Bind mount malicious library to test unauthorized access,!12Bind mount malicious library to test unauthorized access
......@@ -71,6 +71,7 @@ fi
# Create a temporary directory for files
TMP_DIR=$(mktemp -d)
trap "rm -rf $TMP_DIR; exit" EXIT
# Log start time
START_TIME=$(date +"%F %T")
......
......@@ -300,7 +300,7 @@ ${systemctl} stop ${service} || :
debug "waiting for end-of-file on command output..."
wait "$cat_fifo_pid" || result=fail
rm -fr "${user_log_dir}" || result=fail
${as_target_user} rm -fr "${user_log_dir}" || result=fail
if [ -n "${lava_runes}" ]; then
"lava-test-case" "${name}" --result "${result}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment