mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
Simpily errexit modifications
This commit is contained in:
parent
ea3c21f270
commit
0abeec9cae
@ -107,7 +107,7 @@ function retry {
|
||||
rc=0
|
||||
for i in $(seq $N); do
|
||||
echo "Trying: $*"
|
||||
eval $@ && rc=$? || rc=$?
|
||||
eval $@; rc=$?
|
||||
if [ $rc == 0 ]; then
|
||||
break
|
||||
fi
|
||||
@ -267,7 +267,7 @@ function start_s3fs {
|
||||
if [ `uname` = "Darwin" ]; then
|
||||
TRYCOUNT=0
|
||||
while [ $TRYCOUNT -le ${RETRIES:=20} ]; do
|
||||
df | grep -q $TEST_BUCKET_MOUNT_POINT_1 && rc=$? || rc=$?
|
||||
df | grep -q $TEST_BUCKET_MOUNT_POINT_1; rc=$?
|
||||
if [ $rc -eq 0 ]; then
|
||||
break;
|
||||
fi
|
||||
|
@ -235,7 +235,7 @@ function run_suite {
|
||||
key_prefix="testrun-$RANDOM"
|
||||
cd_run_dir $key_prefix
|
||||
for t in "${TEST_LIST[@]}"; do
|
||||
$t $key_prefix && rc=$? || rc=$?
|
||||
$t $key_prefix; rc=$?
|
||||
if [[ $rc == 0 ]] ; then
|
||||
report_pass $t
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user