From 3e128637849be01ca27998ecf92a6b45f44e3364 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 7 Jun 2015 13:52:01 +0200 Subject: [PATCH] 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 --- src/test/ceph-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.47.3