]> git.proxmox.com Git - mirror_zfs.git/commit
Added noexit variant for Raidz setup in ZTS tests
authorBrian Atkinson <batkinson@lanl.gov>
Fri, 4 Mar 2022 01:18:07 +0000 (18:18 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Mar 2022 17:20:00 +0000 (09:20 -0800)
commit1b609d4b035930a044bf9133b4c9dcf172b3c101
treef242004285c10868a6c27d69270128e726dfb90e
parent6df43169b30985ce7d9df11d25093dec26829d2c
Added noexit variant for Raidz setup in ZTS tests

The regular default_raidz_setup function in the ZFS test suite called
log_pass after creating the zpool. However, with compression now being
on by default 56fa4aa, there is no way to turn compression off in the
setup.ksh scripts when creating a raidz VDEV. The addition of the
function default_raidz_setup_noexit allows for a raidz VDEV to be
created, additional zfs property settings to be applied and for the
setup.ksh script itself to call log_pass.

With the addition of default_raidz_setup_noexit some stray log_pass
calls were removed from any setup.ksh scripts that call
default_raidz_setup.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #13173
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/online_offline/setup.ksh
tests/zfs-tests/tests/functional/replacement/setup.ksh