Skip to content

Commit 3729186

Browse files
Jiri Slaby (SUSE)jiegec
authored andcommitted
tests: eliminate use of fgrep
fgrep use is deprecated. Use grep -F instead. See: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a95156247098
1 parent 0a979c5 commit 3729186

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/dialects/linux/tests/case-20-inet6-ffffffff-handling.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ expectation="n[${v6addr}]:$port"
3030
result=1
3131
if "${lsof}" -p "${pid}" -a -d fd -P -n -F n \
3232
| tee -a "${report}" \
33-
| fgrep -q "$expectation"; then
33+
| grep -Fq "$expectation"; then
3434
result=0
3535
fi
3636

lib/dialects/linux/tests/case-20-pidfd-pid.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $TARGET | (
1111
exit 77
1212
fi
1313
line=$($lsof -p $pid -a -d $fd -F pfn| tr '\n' ' ')
14-
if ! fgrep -q "p${pid} f${fd} n[pidfd:$pid]" <<<"$line"; then
14+
if ! grep -Fq "p${pid} f${fd} n[pidfd:$pid]" <<<"$line"; then
1515
$lsof -p $pid -a -d $fd -F pfn
1616
echo
1717
echo $line

0 commit comments

Comments
 (0)