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>
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
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
}