summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdevel/check_if_signed2
-rwxr-xr-xfuzz/get_all_corpora2
-rwxr-xr-xfuzz/get_ossfuzz_corpora2
-rwxr-xr-xfuzz/run-clang.sh2
-rwxr-xr-xtests/logfile-option.sh8
5 files changed, 8 insertions, 8 deletions
diff --git a/devel/check_if_signed b/devel/check_if_signed
index 61466a05b3..43a311d004 100755
--- a/devel/check_if_signed
+++ b/devel/check_if_signed
@@ -33,7 +33,7 @@ for hash in $commits; do
echo "Missing Signed-off-by"
exit 1
fi
- if ! echo $signed | grep -q "Signed-off-by:.*<${author}>"; then
+ if ! echo $signed | grep "Signed-off-by:.*<${author}>" >/dev/null; then
echo "Author '${author}' doesn't match"
exit 1
fi
diff --git a/fuzz/get_all_corpora b/fuzz/get_all_corpora
index 3cec9f3dec..7fc3491634 100755
--- a/fuzz/get_all_corpora
+++ b/fuzz/get_all_corpora
@@ -1,6 +1,6 @@
#!/bin/sh -u
-if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
+if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
echo "Please built regarding README.md and try again."
exit 1
diff --git a/fuzz/get_ossfuzz_corpora b/fuzz/get_ossfuzz_corpora
index ef1d5419c4..9d1f758080 100755
--- a/fuzz/get_ossfuzz_corpora
+++ b/fuzz/get_ossfuzz_corpora
@@ -13,7 +13,7 @@ if test -z "$1"; then
exit 1
fi
-if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
+if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
echo "Please built regarding README.md and try again."
exit 1
diff --git a/fuzz/run-clang.sh b/fuzz/run-clang.sh
index 6d7da40210..1904248d9e 100755
--- a/fuzz/run-clang.sh
+++ b/fuzz/run-clang.sh
@@ -30,7 +30,7 @@ if test -z "$1"; then
exit 1
fi
-if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
+if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
echo "Please built regarding README.md and try again."
exit 1
diff --git a/tests/logfile-option.sh b/tests/logfile-option.sh
index e0086dc821..2e909512b1 100755
--- a/tests/logfile-option.sh
+++ b/tests/logfile-option.sh
@@ -76,7 +76,7 @@ if ! test -s ${TMPFILE2};then
echo "Stdout should not be empty!"
exit 1
fi
-if grep -q "Handshake was completed" ${TMPFILE2};then
+if grep "Handshake was completed" ${TMPFILE2} >/dev/null; then
echo "Find the expected output!"
else
echo "Cannot find the expected output!"
@@ -104,7 +104,7 @@ if test -s ${TMPFILE2};then
exit 1
fi
-if grep -q "Handshake was completed" ${TMPFILE1}; then
+if grep "Handshake was completed" ${TMPFILE1} >/dev/null; then
echo "Found the expected output!"
else
echo "Cannot find the expected output!"
@@ -131,7 +131,7 @@ if ! test -s ${TMPFILE2};then
echo "Stdout should not be empty!"
exit 1
fi
-if grep -q "Handshake was completed" ${TMPFILE2};then
+if grep "Handshake was completed" ${TMPFILE2} >/dev/null; then
echo "Find the expected output!"
else
echo "Cannot find the expected output!"
@@ -158,7 +158,7 @@ if test -s ${TMPFILE2};then
exit 1
fi
-if grep -q "Handshake was completed" ${TMPFILE1}; then
+if grep "Handshake was completed" ${TMPFILE1} >/dev/null; then
echo "Found the expected output!"
else
echo "Cannot find the expected output!"