summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2021-12-17 12:37:21 -0800
committerTony Hutter <[email protected]>2022-02-10 11:04:46 -0800
commit29e05d5345d456e4434a6ffc16483a0fc0ba0cbd (patch)
tree9193ba4a915efdcf8316a7c14c05a7a9408f12de /tests
parentf471a0a0a7d8c303857828edbe997df2f0f3072c (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #12871
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.shlib4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.shlib b/tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.shlib
index 075ad85e9..3d142fdf7 100644
--- a/tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.shlib
+++ b/tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.shlib
@@ -68,11 +68,11 @@ function wait_for_action #pool timeout function
{
typeset pool=$1
typeset -i timeout=$2
- typeset func=$3
+ typeset funct=$3
while [ $timeout -gt 0 ]; do
(( --timeout ))
- if ( $func $pool ); then
+ if ( $funct $pool ); then
return 0
fi
sleep 1