From: Loic Dachary Date: Sun, 5 Apr 2015 16:54:07 +0000 (+0200) Subject: tests: docker-test must bind mount .ccache X-Git-Tag: v9.0.0~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=123230ce5587aae70526e9ebd2789c3883f47c4d;p=ceph.git tests: docker-test must bind mount .ccache run-make-check.sh relies on ccache. If ~/.ccache is not bind mounted and $HOME is not bind mounted either, ./configure will fail with an obscure error because it cannot create the directory. Create the directory if it does not exist already and avoid this problem. The worst that can happen is that an empty .ccache directory is created and never used which should not be a major inconvenience. Signed-off-by: Loic Dachary --- diff --git a/src/test/docker-test-helper.sh b/src/test/docker-test-helper.sh index 3035f0250c342..0b914ae39e6d7 100755 --- a/src/test/docker-test-helper.sh +++ b/src/test/docker-test-helper.sh @@ -121,9 +121,8 @@ function run_in_docker() { local image=$(get_image_name $os_type $os_version) local upstream=$(get_upstream) local ccache - if test -d $HOME/.ccache ; then - ccache="--volume $HOME/.ccache:$HOME/.ccache" - fi + mkdir -p $HOME/.ccache + ccache="--volume $HOME/.ccache:$HOME/.ccache" if $dev ; then dev="--volume /dev:/dev" else