From 705ab0a86ea3c89de8ce3d27d63695771d5e6f34 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 25 Mar 2020 15:25:08 -0400 Subject: [PATCH] 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 --- scripts/lttng-tools/gerrit-depends-on.sh | 5 +++++ 1 file changed, 5 insertions(+) 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]} -- 2.34.1