diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-23 00:01:29 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-02-26 16:54:27 +0300 |
commit | 3afc41a49b465272264bbd2f7264a3d8fad56855 (patch) | |
tree | ac4377b9a5a46675f913ec646153da2707a96972 /tests/drone-wait-objectstore.sh | |
parent | ae720b3881cd1b85c88375f873b41bd5490783c1 (diff) |
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>
Diffstat (limited to 'tests/drone-wait-objectstore.sh')
-rwxr-xr-x | tests/drone-wait-objectstore.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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" |