Support DEBUG= to skip exit/bailout of kvm.
authorMichael Prokop <mika@grml.org>
Mon, 17 May 2010 11:02:59 +0000 (13:02 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 17 May 2010 11:02:59 +0000 (13:02 +0200)
framework.sh

index 52bddd2..0e27063 100644 (file)
@@ -11,6 +11,7 @@ timeout_handler() {
 }
 
 bailout() {
+    [ -n "$DEBUG" ] && return 0
     eval $BAILOUT_CMD
     kill -9 $GATLING_PID $KVM_PID $SERVER_PID $TIMEOUT_PID $$ 2>/dev/null
 }
@@ -37,6 +38,7 @@ run_test()
 
 timeout()
 {
+    [ -n "$DEBUG" ] && return 0
     ( sleep $TIMEOUT_TIME ; kill -16 $$; )2>/dev/null &
     TIMEOUT_PID=$!
 }