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>
This commit is contained in:
Roeland Jago Douma 2018-02-22 22:01:29 +01:00 committed by Robin Appelman
parent ae720b3881
commit 3afc41a49b
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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"