From: David Galloway Date: Tue, 3 Oct 2017 15:30:33 +0000 (-0400) Subject: ceph-docker-nightly: Set 3h timeout for nightly tests too X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8579695734c5306ff422c0850592927191728bae;p=ceph-build.git ceph-docker-nightly: Set 3h timeout for nightly tests too Signed-off-by: David Galloway --- diff --git a/ceph-docker-nightly/build/build b/ceph-docker-nightly/build/build index 68a64c5f..a2995e87 100644 --- a/ceph-docker-nightly/build/build +++ b/ceph-docker-nightly/build/build @@ -23,4 +23,7 @@ update_vagrant_boxes # adding groups on the fly doesn't guarantee their availability # so we must use `sg` to execute the tests as part of the docker group to avoid # 'Permission Denied` when tryin to talk over the socket -sg docker -c "$VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR" +if ! timeout 3h sg docker -c "$VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR"; then + echo "ERROR: Job didn't complete successfully or got stuck for more than 3h." + exit 1 +fi