lttng-tools gerrit: temporarily disable bash debug for pattern matching
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 25 Mar 2020 19:25:08 +0000 (15:25 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 25 Mar 2020 19:25:08 +0000 (15:25 -0400)
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 <jonathan.rajotte-julien@efficios.com>
scripts/lttng-tools/gerrit-depends-on.sh

index 062323bfb50c3f84279b76761605d7863d2cf93c..4003dfc1fb164183e46df22c71dbd99b29cffb8b 100755 (executable)
@@ -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]}
This page took 0.023568 seconds and 4 git commands to generate.