From 53ce54faf293e5454dff725962d7753d8f95c0af Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 21 Sep 2018 14:28:28 +0200 Subject: [PATCH] fix the grep in the test --- debian/qualify-clang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 423058d4..e8c7d06d 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -51,7 +51,7 @@ scan-build-$VERSION gcc -c foo.c &> /dev/null scan-build-$VERSION clang-$VERSION -c foo.c &> /dev/null scan-build-$VERSION --exclude non-existing/ --exclude /tmp/ -v clang-$VERSION -c foo.c &> /dev/null scan-build-$VERSION --exclude $(pwd) -v clang-$VERSION -c foo.c &> foo.log -if ! grep -q -E "scan-build: 0 bugs found."; then +if ! grep -q -E "scan-build: 0 bugs found." foo.log; then echo "scan-build --exclude didn't ignore the defect" exit 42 fi