ZTS: Catalog tunable names for tests in tunables.cfg

Update tests to use the variables for tunable names.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9831
This commit is contained in:
Ryan Moeller
2020-01-14 17:57:28 -05:00
committed by Brian Behlendorf
parent 61152d1069
commit 2476f10306
85 changed files with 434 additions and 366 deletions
@@ -39,10 +39,10 @@
verify_runnable "both"
oldvalue=$(get_tunable spa_asize_inflation)
oldvalue=$(get_tunable SPA_ASIZE_INFLATION)
function cleanup
{
set_tunable32 spa_asize_inflation $oldvalue
set_tunable32 SPA_ASIZE_INFLATION $oldvalue
log_must zfs destroy -rf $TESTPOOL/$TESTFS
log_must zfs create $TESTPOOL/$TESTFS
log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
@@ -50,7 +50,7 @@ function cleanup
log_onexit cleanup
set_tunable32 spa_asize_inflation 2
set_tunable32 SPA_ASIZE_INFLATION 2
TESTFILE='testfile'
FS=$TESTPOOL/$TESTFS