7311: Do not forget to make temp dirs. 7311-temp-base
authorTom Clegg <tom@curoverse.com>
Fri, 11 Sep 2015 21:04:53 +0000 (17:04 -0400)
committerTom Clegg <tom@curoverse.com>
Fri, 11 Sep 2015 21:04:53 +0000 (17:04 -0400)
jenkins/run-tests.sh

index c8e1cced76a02945eaedf068531b76eaaddd8092..639cd14588a90098bb579043292cf64ea17fc9ce 100755 (executable)
@@ -300,13 +300,12 @@ fi
 # Set up temporary install dirs (unless existing dirs were supplied)
 for tmpdir in VENVDIR VENV3DIR GOPATH GEMHOME PERLINSTALLBASE
 do
-    if [[ -n "${!tmpdir}" ]]; then
-        # Support old user-named temp dirs (but --temp {base} would
-        # be more convenient)
-        mkdir -p "${!tmpdir}"
-    else
+    if [[ -z "${!tmpdir}" ]]; then
         eval "$tmpdir"="$temp/$tmpdir"
     fi
+    if ! [[ -d "${!tmpdir}" ]]; then
+        mkdir "${!tmpdir}" || fatal "can't create ${!tmpdir} (does $temp exist?)"
+    fi
 done
 
 setup_ruby_environment() {