Skip to content

Commit

Permalink
use sudo for dbufstat in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sara hartse committed Apr 1, 2019
1 parent 87d4f9d commit d4140db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "dbufstat ${args[i]} > /dev/null"
log_must eval "sudo dbufstat ${args[i]} > /dev/null"
((i = i + 1))
done

# A simple test of dbufstat filter functionality
log_must eval "dbufstat -F object=10,dbc=1,pool=$TESTPOOL > /dev/null"
log_must eval "sudo dbufstat -F object=10,dbc=1,pool=$TESTPOOL > /dev/null"

log_pass "dbufstat generates output and doesn't return an error code"

0 comments on commit d4140db

Please sign in to comment.