mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
egrep -> grep -E
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -103,10 +103,7 @@ function log_must_retry
|
||||
out="cat $logfile"
|
||||
|
||||
if (( $status == 0 )); then
|
||||
$out | egrep -i "internal error|assertion failed" \
|
||||
> /dev/null 2>&1
|
||||
# internal error or assertion failed
|
||||
if [[ $? -eq 0 ]]; then
|
||||
if $out | grep -qEi "internal error|assertion failed"; then
|
||||
print -u2 $($out)
|
||||
_printerror "$@" "internal error or" \
|
||||
" assertion failure exited $status"
|
||||
@@ -228,10 +225,7 @@ function log_neg_expect
|
||||
print -u2 $($out)
|
||||
_printerror "$@" "unexpectedly exited $status (SEGV)"
|
||||
else
|
||||
$out | egrep -i "internal error|assertion failed" \
|
||||
> /dev/null 2>&1
|
||||
# internal error or assertion failed
|
||||
if (( $? == 0 )); then
|
||||
if $out | grep -qEi "internal error|assertion failed"; then
|
||||
print -u2 $($out)
|
||||
_printerror "$@" "internal error or assertion failure" \
|
||||
" exited $status"
|
||||
@@ -279,10 +273,7 @@ function log_pos
|
||||
print -u2 $($out)
|
||||
_printerror "$@" "exited $status"
|
||||
else
|
||||
$out | egrep -i "internal error|assertion failed" \
|
||||
> /dev/null 2>&1
|
||||
# internal error or assertion failed
|
||||
if [[ $? -eq 0 ]]; then
|
||||
if $out | grep -qEi "internal error|assertion failed"; then
|
||||
print -u2 $($out)
|
||||
_printerror "$@" "internal error or assertion failure" \
|
||||
" exited $status"
|
||||
|
||||
Reference in New Issue
Block a user