]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-docker-nightly: Set 3h timeout for nightly tests too 879/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 3 Oct 2017 15:30:33 +0000 (11:30 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 3 Oct 2017 15:30:33 +0000 (11:30 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-docker-nightly/build/build

index 68a64c5fcd7c1fc10caf30314755a503948e79f4..a2995e8762b7aebf66357aa2e6ae45c8735ee483 100644 (file)
@@ -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