From 3305a472b25417b250595b16984fb0f711fd9132 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 28 Apr 2015 11:51:02 -0700 Subject: [PATCH] Explicitly say when job times out When timeout -s 9 times out it has a return code of 137. Make the output easier a little easier to understand by explicitly stating the job timed out. Change-Id: If986bdb64630d7ab2f3510f6a704fec858421612 --- devstack-vm-gate-wrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index a6d282dc..462a9c14 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -504,6 +504,7 @@ if [ $GATE_RETVAL -eq 0 ]; then fi if [ $GATE_RETVAL -eq 137 ] && [ -f $WORKSPACE/gate.pid ] ; then + echo "Job timed out" GATEPID=`cat $WORKSPACE/gate.pid` echo "Killing process group ${GATEPID}" sudo kill -s 9 -${GATEPID}