From 358ad8eabdc9eec2e8b690ca0310b213dc4f6098 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Fri, 21 Nov 2014 17:37:43 -0500 Subject: [PATCH] run-tests: make the error message displayed when WORKSPACE isn't set a bit prettier. No issue # --- jenkins/run-tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 1f65c95..20c92bf 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -154,8 +154,15 @@ do done # Sanity check +if ! [[ -n "$WORKSPACE" ]]; then + echo >&2 "$helpmessage" + echo >&2 + echo >&2 "Error: WORKSPACE environment variable not set" + echo >&2 + exit 1 +fi + echo "WORKSPACE=$WORKSPACE" -[[ -n "$WORKSPACE" ]] || fatal "WORKSPACE not set" if [[ -z "$CONFIGSRC" ]] && [[ -d "$HOME/arvados-api-server" ]]; then # Jenkins expects us to use this by default. -- 2.30.2