summaryrefslogtreecommitdiffstats
path: root/tests/debuginfod-subr.sh
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2022-10-27 18:34:54 +0200
committerMark Wielaard <[email protected]>2022-10-27 18:34:54 +0200
commit73d016bde224af6d1be7c86fb2ea67af22f7582f (patch)
tree1f394025092d8b7f2cbe4278077962fb637181a2 /tests/debuginfod-subr.sh
parent6f1ec0ef46e067ac5169880317f37223e96c9732 (diff)
Use grep -E instead of egrep, use grep -F instead of fgrep.
GNU grep 3.8 gives a deprecation warning when using egrep or fgrep. Just use grep -E and grep -F. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/debuginfod-subr.sh')
-rwxr-xr-xtests/debuginfod-subr.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/debuginfod-subr.sh b/tests/debuginfod-subr.sh
index 0b59b5b8..108dff74 100755
--- a/tests/debuginfod-subr.sh
+++ b/tests/debuginfod-subr.sh
@@ -141,12 +141,12 @@ archive_test() {
get_ports() {
while true; do
PORT1=`expr '(' $RANDOM % 50 ')' + $base`
- ss -atn | fgrep ":$PORT1" || break
+ ss -atn | grep -F ":$PORT1" || break
done
# Some tests will use two servers, so assign the second var
while true; do
PORT2=`expr '(' $RANDOM % 50 ')' + $base + 50`
- ss -atn | fgrep ":$PORT2" || break
+ ss -atn | grep -F ":$PORT2" || break
done
}