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>
pull/8359/head
Roeland Jago Douma 6 years ago committed by Robin Appelman
parent ae720b3881
commit 3afc41a49b
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB

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

Loading…
Cancel
Save