ZTS: Fix zpool_reopen_[1-5] on Fedora 35
The zpool_reopen_[1-5] tests are failing Fedora 35 with: zpool_reopen_001_pos.ksh[64]: log_must[67]: log_pos[270]: wait_for_resilver_end[98]: wait_for_action: line 71: func: is read only Renaming 'func' -> 'funct' fixes the issue. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #12871
This commit is contained in:
parent
8a02d01e85
commit
9aa0915f87
|
@ -68,11 +68,11 @@ function wait_for_action #pool timeout function
|
||||||
{
|
{
|
||||||
typeset pool=$1
|
typeset pool=$1
|
||||||
typeset -i timeout=$2
|
typeset -i timeout=$2
|
||||||
typeset func=$3
|
typeset funct=$3
|
||||||
|
|
||||||
while [ $timeout -gt 0 ]; do
|
while [ $timeout -gt 0 ]; do
|
||||||
(( --timeout ))
|
(( --timeout ))
|
||||||
if ( $func $pool ); then
|
if ( $funct $pool ); then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in New Issue