]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk.sh test zap gitbuilder false negative 4893/head
authorLoic Dachary <ldachary@redhat.com>
Sun, 7 Jun 2015 11:52:01 +0000 (13:52 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 7 Jun 2015 11:52:01 +0000 (13:52 +0200)
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 <ldachary@redhat.com>
src/test/ceph-disk.sh

index f3eed8a0e0270127341852225b16cc033f1c6f4b..9ae6de7fada9c94345b51e633067f28f7b0bf54a 100755 (executable)
@@ -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
 }