Commit eedab7e7 authored by F-WRunTime's avatar F-WRunTime

Isolate docker cleanup function, retesting previous failure

parent af6e2bf5
......@@ -87,14 +87,19 @@ dump_log_results(){
docker logs ${CONTAINER_NAME} > $LOG_FILE
}
clean_docker(){
notif "Stopping Docker Container"
docker stop ${CONTAINER_NAME}
blank_line
}
# Define the function to run on failure
on_failure() {
dump_log_results
notif "Stopping Docker Container"
docker stop ${CONTAINER_NAME}
blank_line
clean_docker
notif "Cleanup complete."
blank_line
......@@ -149,6 +154,8 @@ kontrol_prove
dump_log_results
clean_docker
blank_line
notif "DONE"
blank_line
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment