]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
tarball: kill -9 ceph-mon / ceph-osd always succeed 53/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 9 Jun 2015 12:40:38 +0000 (14:40 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 9 Jun 2015 12:58:19 +0000 (14:58 +0200)
The error code of kill -9 ceph-{mon,osd} must be ignored otherwise the
build may return on error if it fails to kill the process just because
all has been cleaned up as it should.

http://tracker.ceph.com/issues/11929 Fixes: #11929

Signed-off-by: Loic Dachary <ldachary@redhat.com>
build-ceph.sh

index d7b41770f3371ea87dfa73eb03d7fb3ae3d56f37..7f121eaf3cd18dcd121458a7ddd7c72b5b08447d 100755 (executable)
@@ -88,7 +88,7 @@ make -j$(get_processors) "$@" || exit 4
 
 # run "make check", but give it a time limit in case a test gets stuck
 
-trap "pkill -9 ceph-osd ; pkill -9 ceph-mon" EXIT
+trap "pkill -9 ceph-osd || true ; pkill -9 ceph-mon || true" EXIT
 
 if ! ../maxtime 3600 make $(maybe_parallel_make_check) check "$@" ; then
     display_failures .