Skip to content

Commit 11d083b

Browse files
committed
tweak test
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
1 parent 82d39da commit 11d083b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/zfs-tests/tests/functional/gang_blocks/metaslab_tuning_001_pos.ksh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@ log_assert "Metaslab weight algorithm selection works correctly."
3232
function cleanup
3333
{
3434
restore_tunable_string ACTIVE_WEIGHTFUNC
35-
zpool destroy $TESTPOOL
35+
poolexists $TESTPOOL && zpool destroy $TESTPOOL
3636
}
3737
log_onexit cleanup
3838

3939
save_tunable ACTIVE_WEIGHTFUNC
4040

4141
for value in "auto" "space" "space_v2" "segment"
4242
do
43-
set_tunable_string ACTIVE_WEIGHTFUNC
43+
log_must set_tunable_string ACTIVE_WEIGHTFUNC $value
4444
log_must zpool create -f $TESTPOOL $DISKS
45+
log_must fill_fs /$TESTPOOL 1 100 1048576 R
4546
log_must zpool destroy $TESTPOOL
4647
done
4748

0 commit comments

Comments
 (0)