From e13ddc7dae3ddabe51dcbad93ca22dc852842234 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 31 Aug 2014 22:59:04 +0200 Subject: [PATCH] tests: qa/workunits/cephtool/test.sh early fail Add tests to fail as soon as an unexpected condition is met in test_mon_osd. Otherwise the actual error will be more difficult find in the logs. Signed-off-by: Loic Dachary --- qa/workunits/cephtool/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 80bf76c65b385..97b2b3d3c4ebd 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -522,6 +522,7 @@ function test_mon_osd() break fi done + ceph osd dump | grep 'osd.0 up' ceph osd thrash 10 ceph osd down `seq 0 31` # force everything down so that we can trust up @@ -534,6 +535,8 @@ function test_mon_osd() break fi done + ! ceph osd dump | grep ' down ' + # if you have more osds than this you are on your own for f in `seq 0 31`; do ceph osd in $f || true -- 2.39.5