From 6151fc5df0845ba51e94e5ea22bceb31c947cdfc Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Wed, 6 Oct 2021 19:17:02 -0400 Subject: [PATCH 1/1] Fix output when a token is suppressed. No issue # Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- jenkins/run-cwl-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/run-cwl-test.sh b/jenkins/run-cwl-test.sh index cf279f5..742ddcb 100755 --- a/jenkins/run-cwl-test.sh +++ b/jenkins/run-cwl-test.sh @@ -5,6 +5,8 @@ # SPDX-License-Identifier: AGPL-3.0 set -o pipefail +# extglob needs to be enabled for the suppression of tokens in the output +shopt -s extglob DEBUG=0 SSH_PORT=22 @@ -168,7 +170,7 @@ function run_command() { title "Connection denied or timed out" fi else - title "Running '${command/ARVADOS_API_TOKEN=* /ARVADOS_API_TOKEN=suppressed }' locally" + title "Running '${command/ARVADOS_API_TOKEN=*([-a-z0-9\/])/ARVADOS_API_TOKEN=suppressed}' locally" TMP_FILE=`mktemp` if [[ "$DEBUG" != "0" ]]; then bash -c "$command" | tee $TMP_FILE -- 2.30.2