Skip to content

Commit

Permalink
ci: Remove docker file after running baremetal tests
Browse files Browse the repository at this point in the history
After running the metrics tests we need to remove docker configuration file
so we have a clean environment.

Fixes kata-containers#3010

Signed-off-by: Gabriela Cervantes <[email protected]>
  • Loading branch information
GabyCT committed Oct 27, 2020
1 parent 3fc8169 commit b605475
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ci/run_metrics_PR_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ check() {
fi
}

teardown() {
docker_configuration_path="/etc/docker"
docker_configuration_file="${docker_configuration_path}/daemon.json"
if [ -f "${docker_configuration_file}" ]; then
sudo rm -f "${docker_configuration_file}"
fi
}

init
run
check
teardown

0 comments on commit b605475

Please sign in to comment.