summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/tests/integrated/common/docker_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/tests/integrated/common/docker_base.py b/ryu/tests/integrated/common/docker_base.py
index e2f9a985..6f7892db 100644
--- a/ryu/tests/integrated/common/docker_base.py
+++ b/ryu/tests/integrated/common/docker_base.py
@@ -210,6 +210,10 @@ class DockerImage(object):
'RUN apt-get update',
'&& apt-get install -qy --no-install-recommends %s' % pkges,
'&& cd %s' % workdir_ctn,
+ # Note: Clean previous builds, because "python setup.py install"
+ # might fail if the current directory contains the symlink to
+ # Docker host file systems.
+ '&& rm -rf *.egg-info/ build/ dist/ .tox/ *.log'
'&& pip install -r tools/pip-requires -r tools/optional-requires',
'&& python setup.py install',
])