mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
ZTS: Fix in-tree dbufstats test case
Commit a887d653 updated the dbufstats such that escalated privileges
are required. Since all tests under cli_user are run with normal
privileges move this test case to a location where it will be run
required privileges.
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9118
Closes #9196
This commit is contained in:
committed by
Tony Hutter
parent
3b47c941eb
commit
9ad6f69a03
@@ -3,4 +3,5 @@ dist_pkgdata_SCRIPTS = \
|
||||
cleanup.ksh \
|
||||
setup.ksh \
|
||||
dbufstats_001_pos.ksh \
|
||||
dbufstats_002_pos.ksh
|
||||
dbufstats_002_pos.ksh \
|
||||
dbufstats_003_pos.ksh
|
||||
|
||||
+2
-2
@@ -33,11 +33,11 @@ log_assert "dbufstat generates output and doesn't return an error code"
|
||||
|
||||
typeset -i i=0
|
||||
while [[ $i -lt ${#args[*]} ]]; do
|
||||
log_must eval "sudo dbufstat ${args[i]} > /dev/null"
|
||||
log_must eval "dbufstat ${args[i]} >/dev/null"
|
||||
((i = i + 1))
|
||||
done
|
||||
|
||||
# A simple test of dbufstat filter functionality
|
||||
log_must eval "sudo dbufstat -F object=10,dbc=1,pool=$TESTPOOL > /dev/null"
|
||||
log_must eval "dbufstat -F object=10,dbc=1,pool=$TESTPOOL >/dev/null"
|
||||
|
||||
log_pass "dbufstat generates output and doesn't return an error code"
|
||||
@@ -45,8 +45,7 @@ dist_pkgdata_SCRIPTS = \
|
||||
zpool_upgrade_001_neg.ksh \
|
||||
arcstat_001_pos.ksh \
|
||||
arc_summary_001_pos.ksh \
|
||||
arc_summary_002_neg.ksh \
|
||||
dbufstat_001_pos.ksh
|
||||
arc_summary_002_neg.ksh
|
||||
|
||||
dist_pkgdata_DATA = \
|
||||
misc.cfg
|
||||
|
||||
Reference in New Issue
Block a user