]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: fix false positive for gitbuilder 1040/head
authorLoic Dachary <loic@dachary.org>
Fri, 3 Jan 2014 21:52:55 +0000 (22:52 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 3 Jan 2014 21:52:55 +0000 (22:52 +0100)
The output of test/ceph-disk.sh is very verbose which is good for
debugging errors. However it sometime contains strings that match
/error:/i which is picked by gitbuilder as a sign that the test fail,
even when the exit code is zero.

Remove from the output the three strings triggering false positive in
gitbuilder.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/ceph-disk.sh

index 2dd83f73f25c6e8e12c596a41de048fc36c17da3..e4976bca40618c1a8288cf2593d47eb7306aa806 100755 (executable)
@@ -148,7 +148,7 @@ function test_activate_dir_magic() {
 
     mkdir -p $osd_data/fsid
     CEPH_ARGS="--fsid $uuid" \
-     ./ceph-disk $CEPH_DISK_ARGS prepare $osd_data 2>&1 | tee $DIR/out
+     ./ceph-disk $CEPH_DISK_ARGS prepare $osd_data > $DIR/out 2>&1
     grep --quiet 'Is a directory' $DIR/out || return 1
     ! [ -f $osd_data/magic ] || return 1
     rmdir $osd_data/fsid
@@ -200,8 +200,8 @@ function test_find_cluster_by_uuid() {
 
     setup
     rm $DIR/ceph.conf
-    test_activate_dir 2>&1 | tee $DIR/test_find
-    grep "No cluster conf found in $DIR" $DIR/test_find || return 1
+    test_activate_dir > $DIR/test_find 2>&1 
+    grep --quiet "No cluster conf found in $DIR" $DIR/test_find || return 1
     teardown
 }