tests: remove docker before installing the newer version

In some distros docker is already installed and the CI fails because the newer
version can't be installed because it conflicts with the old version. Remove
old version before installing the newer version of docker.

fixes #241

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-03-11 15:14:44 -06:00
parent b4de168cf4
commit 519bbe8f66

View File

@ -251,6 +251,7 @@ setup()
[ ! -d "${tests_repo_dir}" ] && git clone "https://${tests_repo}" "${tests_repo_dir}" [ ! -d "${tests_repo_dir}" ] && git clone "https://${tests_repo}" "${tests_repo_dir}"
if [ -z "${KATA_DEV_MODE:-}" ]; then if [ -z "${KATA_DEV_MODE:-}" ]; then
chronic $mgr remove-docker
chronic $mgr install-docker-system chronic $mgr install-docker-system
else else
info "Running with KATA_DEV_MODE set, skipping installation of docker and kata packages" info "Running with KATA_DEV_MODE set, skipping installation of docker and kata packages"