Ensure $WORKSPACE/tmp/ exists. Fix unchecked error.
authorTom Clegg <tclegg@veritasgenetics.com>
Fri, 22 Jun 2018 17:47:37 +0000 (13:47 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Fri, 22 Jun 2018 17:47:37 +0000 (13:47 -0400)
No issue #

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

build/run-tests.sh

index 4ec5c08d5f8c0070f120c6300fd1e417bd179827..636c0306ca94a7948b1e4a63302ae467ca7aea37 100755 (executable)
@@ -619,7 +619,8 @@ fi
 # Jenkins config requires that glob tmp/*.log match something. Ensure
 # that happens even if we don't end up running services that set up
 # logging.
-touch "${WORKSPACE}/tmp/controller.log"
+mkdir -p "${WORKSPACE}/tmp/" || fatal "could not mkdir ${WORKSPACE}/tmp"
+touch "${WORKSPACE}/tmp/controller.log" || fatal "could not touch ${WORKSPACE}/tmp/controller.log"
 
 retry() {
     remain="${repeat}"