autobuild: don't silence errtrap with leading !
Apparently some shellcheck versions on our CI complain about it and suggest to use && exit 1 instead, we'll try to use || true instead. Change-Id: Idb505770a80929fbb9957f4ba039e009aae98f02 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/835 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
9e33ad7562
commit
242a899573
@ -72,8 +72,8 @@ function scanbuild_make {
|
||||
# from comm manual:
|
||||
# -2 suppress column 2 (lines unique to FILE2)
|
||||
# -3 suppress column 3 (lines that appear in both files)
|
||||
# comm may exit 1 if no lines were printed (undocumented)
|
||||
! comm -2 -3 $out/all_c_files.txt $out/built_c_files.txt > $out/unbuilt_c_files.txt
|
||||
# comm may exit 1 if no lines were printed (undocumented, unreliable)
|
||||
comm -2 -3 $out/all_c_files.txt $out/built_c_files.txt > $out/unbuilt_c_files.txt || true
|
||||
|
||||
if [ $(wc -l < $out/unbuilt_c_files.txt) -ge 1 ]; then
|
||||
echo "missing files"
|
||||
|
Loading…
Reference in New Issue
Block a user