Skip to content

Commit

Permalink
allow pool create to fail for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
  • Loading branch information
pcd1193182 committed Jun 6, 2024
1 parent 539db27 commit 2703840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/zfs-tests/include/libtest.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -1558,10 +1558,10 @@ function create_pool #pool devs_list

if is_global_zone ; then
[[ -d /$pool ]] && rm -rf /$pool
log_must zpool create -f $pool $@
zpool create -f $pool $@
fi

return 0
return $?
}

# Return 0 if destroy successfully or the pool exists; $? otherwise
Expand Down

0 comments on commit 2703840

Please sign in to comment.