[lxc-devel] [lxd/master] sleep 1h on test failure, please don't merge!

tych0 on Github lxc-bot at linuxcontainers.org
Fri Jun 10 20:56:09 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160610/621713ac/attachment.bin>
-------------- next part --------------
From 210082dc9b2673fce64b606e1054cca86effdecf Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Fri, 10 Jun 2016 14:53:29 -0600
Subject: [PATCH] sleep 1h on test failure, please don't merge!

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 test/main.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/main.sh b/test/main.sh
index 8fb8476..50f41ea 100755
--- a/test/main.sh
+++ b/test/main.sh
@@ -267,6 +267,12 @@ kill_lxd() {
 cleanup() {
   set +e
 
+  if [ "${TEST_RESULT}" != "success" ]; then
+    echo "failed test: ${TEST_CURRENT}, sleeping..."
+
+    sleep 1h
+  fi
+
   # Allow for inspection
   if [ -n "${LXD_INSPECT:-}" ]; then
     echo "==> Test result: ${TEST_RESULT}"


More information about the lxc-devel mailing list