coverity: fix prepare_source_Osmocom.sh terminating early

Since [1] was merged this script is executed with '-xe' making it
fail immediately if a command returns a non-zero code.  grep may
return 1 if pattern is not found, so let's suspend it.

Change-Id: I21a01478b64015fd699ed31634bf2fb1dc8f6750
Fixes: [1] Icf6546271a01cd9a3dab1ce0d1bc02807d08ad85
changes/88/29588/1
Vadim Yanitskiy 2 months ago
parent 4bb6385a22
commit 581a7ea879
  1. 2
      coverity/prepare_source_Osmocom.sh

@ -65,7 +65,7 @@ done
# We want to compile tests, but not execute them. Using 'noinst_PROGRAMS'
# instead of 'check_PROGRAMS' allows building test binaries during 'make all'.
for proj in $PROJECTS; do
files="$(git -C $proj grep -l check_PROGRAMS)"
files="$(git -C $proj grep -l check_PROGRAMS)" || true
if [ -n "$files" ]; then
(cd $proj && sed -i "s/check_PROGRAMS/noinst_PROGRAMS/" $files)
fi

Loading…
Cancel
Save