From 88f889de9976685d850a696c0467cea19ce42f4a Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Tue, 13 Feb 2018 21:17:01 +0300 Subject: [PATCH] LU-10617 tests: Dir's and file's stripe counts are mismatched the case when stripe count of dir equals to -1 and files in the dir must be equal to ost count added into the test_24 of ost-pool.sh Author: Alyona Romanenko Signed-off-by: Alyona Romanenko Signed-off-by: Elena Gryaznova Test-Parameters: trivial testlist=ost-pools envdefinitions="ONLY=24" Cray-bug-id: LUS-4467 Seagate-bug-id: MRP-2746 Reviewed-by: Alexander Zarochentsev Reviewed-by: Andriy Skulysh Change-Id: I91e7c65e178c7706f53a95a2807e06b1bc8e0d24 Reviewed-on: https://review.whamcloud.com/31193 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/ost-pools.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index 2ff5084..9915e07 100755 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -1431,7 +1431,13 @@ test_24() { [[ "$pool" != "$pool1" ]] && error "Pool '$pool' not on $file:$pool1" [[ "$count" != "$count1" ]] && - error "Stripe count $count not on $file:$count1" + [[ "$count" != "-1" ]] && + error "Stripe count $count not on"\ + "$file:$count1" + [[ "$count1" != "$OSTCOUNT" ]] && + [[ "$count" = "-1" ]] && + error "Stripe count $count1 not on"\ + "$file:$OSTCOUNT" [[ "$size" != "$size1" ]] && [[ "$size" != "0" ]] && error "Stripe size $size not on $file:$size1" done -- 1.8.3.1