From 3afc41a49b465272264bbd2f7264a3d8fad56855 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Thu, 22 Feb 2018 22:01:29 +0100
Subject: [PATCH] Kill objectstore CI if we can't create a file

This is more of a hack. But one of the nodes won't properly run this. No
sense in waiting 60 minutes

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
---
 tests/drone-wait-objectstore.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/drone-wait-objectstore.sh b/tests/drone-wait-objectstore.sh
index 228accc3da9..7914d45bed1 100755
--- a/tests/drone-wait-objectstore.sh
+++ b/tests/drone-wait-objectstore.sh
@@ -44,6 +44,7 @@ if [ "$OBJECT_STORE" == "swift" ]; then
 
     echo "creating test file"
 
+    i=0
     while [ 1 ]
     do
         sleep 2
@@ -54,6 +55,12 @@ if [ "$OBJECT_STORE" == "swift" ]; then
         then
             break
         fi
+
+        i=$((i + 1))
+        if [ "$i" == "20" ]
+        then
+            exit -1
+        fi
     done
 
     echo "deleting test file"
-- 
GitLab