From: Jonathan Rajotte Date: Wed, 25 Mar 2020 19:25:08 +0000 (-0400) Subject: lttng-tools gerrit: temporarily disable bash debug for pattern matching X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=705ab0a86ea3c89de8ce3d27d63695771d5e6f34;p=lttng-ci.git lttng-tools gerrit: temporarily disable bash debug for pattern matching The debug output for the depends-on script can lead to false positive of the gcc warning publisher. Deactivate the debug mode for the pattern evaluation. Signed-off-by: Jonathan Rajotte --- diff --git a/scripts/lttng-tools/gerrit-depends-on.sh b/scripts/lttng-tools/gerrit-depends-on.sh index 062323b..4003dfc 100755 --- a/scripts/lttng-tools/gerrit-depends-on.sh +++ b/scripts/lttng-tools/gerrit-depends-on.sh @@ -36,9 +36,14 @@ touch "$property_file" pushd "${WORKSPACE}/src/lttng-tools" git rev-list --format=%B --max-count=1 HEAD | while read -r line; do + # Deactivate debug mode to prevent the gcc warning publisher from picking up + # compiler error present in the commit message. + set +x if ! [[ ${line} =~ ${re} ]]; then + set -x continue fi + set -x project=${BASH_REMATCH[1]} gerrit_id=${BASH_REMATCH[2]}