From: Tom Clegg Date: Fri, 22 Jun 2018 17:47:37 +0000 (-0400) Subject: Ensure $WORKSPACE/tmp/ exists. Fix unchecked error. X-Git-Tag: 1.2.0~102 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/4fdb030e1ad940215b75b4b8a8f7aca5635211e3 Ensure $WORKSPACE/tmp/ exists. Fix unchecked error. No issue # Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/build/run-tests.sh b/build/run-tests.sh index 4ec5c08d5f..636c0306ca 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -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}"