Skip to content

Commit dc87b77

Browse files
k0machifruch
authored andcommitted
run_test.sh: Mount /tmp into the unit test container
This change fixes an issue where tests would try to share configuration with child containers via /tmp, but since those directories are not mounted and a parent docker socket is used the containers created this way would receive incorrect mounts. This fixes issues with SniProxy tests. Fixes #28
1 parent e954593 commit dc87b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ docker_cmd="docker run --init --detach=true \
147147
-v ${HOME}/.local:${HOME}/.local \
148148
-v ${HOME}/.ccm:${HOME}/.ccm \
149149
-v ${HOME}/.m2:${HOME}/.m2 \
150+
-v "/tmp":"/tmp" \
150151
--tmpfs ${HOME}/.config \
151152
--network=host --privileged \
152153
${DOCKER_IMAGE} bash -c 'pip install --user -e ${CCM_DIR} ; export PATH=\$PATH:\${HOME}/.local/bin; $*'"

0 commit comments

Comments
 (0)