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(){ ...@@ -87,14 +87,19 @@ dump_log_results(){
docker logs ${CONTAINER_NAME} > $LOG_FILE 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 # Define the function to run on failure
on_failure() { on_failure() {
dump_log_results dump_log_results
notif "Stopping Docker Container" clean_docker
docker stop ${CONTAINER_NAME}
blank_line
notif "Cleanup complete." notif "Cleanup complete."
blank_line blank_line
...@@ -149,6 +154,8 @@ kontrol_prove ...@@ -149,6 +154,8 @@ kontrol_prove
dump_log_results dump_log_results
clean_docker
blank_line blank_line
notif "DONE" notif "DONE"
blank_line 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