From 123230ce5587aae70526e9ebd2789c3883f47c4d Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 5 Apr 2015 18:54:07 +0200 Subject: [PATCH] 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 --- src/test/docker-test-helper.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5