From: Loic Dachary Date: Sun, 7 Jun 2015 11:52:01 +0000 (+0200) Subject: tests: ceph-disk.sh test zap gitbuilder false negative X-Git-Tag: v9.0.2~30^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4893%2Fhead;p=ceph.git tests: ceph-disk.sh test zap gitbuilder false negative When looking for an error message and testing ceph disk zap, use grep -q to not display the error message that will be mistaken for a real error by the gitbuilder parser. http://tracker.ceph.com/issues/11272 Refs: #11272 Signed-off-by: Loic Dachary --- diff --git a/src/test/ceph-disk.sh b/src/test/ceph-disk.sh index f3eed8a0e027..9ae6de7fada9 100755 --- a/src/test/ceph-disk.sh +++ b/src/test/ceph-disk.sh @@ -224,7 +224,7 @@ function test_zap() { local osd_data=$DIR/dir $mkdir -p $osd_data - ./ceph-disk $CEPH_DISK_ARGS zap $osd_data 2>&1 | grep 'not full block device' || return 1 + ./ceph-disk $CEPH_DISK_ARGS zap $osd_data 2>&1 | grep -q 'not full block device' || return 1 $rm -fr $osd_data }