summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-10-15 17:36:27 +0000
committerGerrit Code Review <review@openstack.org>2021-10-15 17:36:27 +0000
commit96025e93264d84d051bc3893278fe8a96ea34947 (patch)
treec07ee52ceb7e90e98a9b4f0a67fe047fb9798aee
parenteb1aae1fe3fbfdaa0d12fbbfc24c5c4586473625 (diff)
parente82d2926e0125d7e3f005e7b5abf2ad0c58df7bb (diff)
downloadpyeclib-96025e93264d84d051bc3893278fe8a96ea34947.tar.gz
Merge "Clean up extra spaces"
-rwxr-xr-xtest/ec_pyeclib_file_test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ec_pyeclib_file_test.sh b/test/ec_pyeclib_file_test.sh
index 446ad62..f9f396b 100755
--- a/test/ec_pyeclib_file_test.sh
+++ b/test/ec_pyeclib_file_test.sh
@@ -66,7 +66,7 @@ for TYPE in ${TYPES}; do
FAULT_TOL=${NUM_PARITY}
if [[ ${TYPE} == "flat_xor_hd"* ]]; then
FAULT_TOL="2"
- fi
+ fi
for file in `cd ${FILES}; echo *; cd ..`; do
python ${TOOLS_DIR}/pyeclib_encode.py ${NUM_DATA} ${NUM_PARITY} ${TYPE} ${FILE_DIR} ${file} ${FRAGMENT_DIR}
done
@@ -76,10 +76,10 @@ for TYPE in ${TYPES}; do
let i=0
while (( $i < ${FAULT_TOL} )); do
index=$(( RANDOM % NUM_TOTAL ))
- fragments[${index}]=""
+ fragments[${index}]=""
let i=$i+1
done
- python ${TOOLS_DIR}/pyeclib_decode.py ${NUM_DATA} ${NUM_PARITY} ${TYPE} ${fragments[*]} ${DECODED_DIR}/${file}
+ python ${TOOLS_DIR}/pyeclib_decode.py ${NUM_DATA} ${NUM_PARITY} ${TYPE} ${fragments[*]} ${DECODED_DIR}/${file}
diff ${FILE_DIR}/${file} ${DECODED_DIR}/${file}.decoded
if [[ $? != 0 ]]; then
echo "${FILE_DIR}/${file} != ${DECODED_DIR}/${file}.decoded"