tests: fix online_brick_count function

online_brick_count should discard Bitrot and Scrubber daemon.

Change-Id: I301373ccdbeec1d1a5e6c6b137f48ed997f22556
Fixes: bz#1611103
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
This commit is contained in:
Atin Mukherjee 2018-08-02 10:17:28 +05:30 committed by Shyamsundar Ranganathan
parent e47a320508
commit 871ea43ef0

View File

@ -48,7 +48,10 @@ function online_brick_count ()
v3=`check_brick_status "Quota"`
v4=`check_brick_status "Snapshot"`
v5=`check_brick_status "Tier"`
tot=$((v1-v2-v3-v4-v5))
v6=`check_brick_status "Scrubber"`
v7=`check_brick_status "Bitrot"`
tot=$((v1-v2-v3-v4-v5-v6-v7))
echo $tot
}