diff options
Diffstat (limited to 'tests/features')
-rwxr-xr-x | tests/features/readdir-ahead.t | 2 | ||||
-rwxr-xr-x | tests/features/ssl-authz.t | 2 | ||||
-rwxr-xr-x | tests/features/weighted-rebalance.t | 40 |
3 files changed, 22 insertions, 22 deletions
diff --git a/tests/features/readdir-ahead.t b/tests/features/readdir-ahead.t index 6c09ee41208..75223df61bf 100755 --- a/tests/features/readdir-ahead.t +++ b/tests/features/readdir-ahead.t @@ -22,7 +22,7 @@ TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0 TEST mkdir $M0/test for i in $(seq 0 99) do - touch $M0/test/$i + touch $M0/test/$i done count=`ls -1 $M0/test | wc -l` diff --git a/tests/features/ssl-authz.t b/tests/features/ssl-authz.t index fa241907b9f..313d67c3eda 100755 --- a/tests/features/ssl-authz.t +++ b/tests/features/ssl-authz.t @@ -3,7 +3,7 @@ . $(dirname $0)/../include.rc ping_file () { - echo hello > $1 2> /dev/null + echo hello > $1 2> /dev/null } SSL_BASE=/etc/ssl diff --git a/tests/features/weighted-rebalance.t b/tests/features/weighted-rebalance.t index 5bd858b4c4c..b9d9eb4eb73 100755 --- a/tests/features/weighted-rebalance.t +++ b/tests/features/weighted-rebalance.t @@ -7,35 +7,35 @@ NFILES=1000 touch_files () { - for i in $(seq 1 $NFILES); do - touch $(printf $M0/dir/file%02d $i) 2> /dev/null - done + for i in $(seq 1 $NFILES); do + touch $(printf $M0/dir/file%02d $i) 2> /dev/null + done } count_files () { - found=0 - for i in $(seq 1 $NFILES); do - if [ -f $(printf $1/dir/file%02d $i) ]; then - found=$((found+1)) - fi - done - echo $found + found=0 + for i in $(seq 1 $NFILES); do + if [ -f $(printf $1/dir/file%02d $i) ]; then + found=$((found+1)) + fi + done + echo $found } wait_for_rebalance () { - while true; do - rebalance_completed - if [ $? -eq 1 ]; then - sleep 1 - else - break - fi - done + while true; do + rebalance_completed + if [ $? -eq 1 ]; then + sleep 1 + else + break + fi + done } get_xattr () { - cmd="getfattr --absolute-names --only-values -n trusted.glusterfs.dht" - $cmd $1 | od -tx1 -An | tr -d ' ' + cmd="getfattr --absolute-names --only-values -n trusted.glusterfs.dht" + $cmd $1 | od -tx1 -An | tr -d ' ' } cleanup |