summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinyuanliu <liujinyuan@inspur.com>2021-09-15 02:03:07 -0400
committerjinyuanliu <liujinyuan@inspur.com>2021-09-15 02:05:47 -0400
commite82d2926e0125d7e3f005e7b5abf2ad0c58df7bb (patch)
treeadf616133579c4297256dabf317bc655110ec5b3
parent3cc64adebd7136b2d38e065e25164c5d22e564b4 (diff)
downloadpyeclib-e82d2926e0125d7e3f005e7b5abf2ad0c58df7bb.tar.gz
Clean up extra spaces
Although these errors are not important, they affect the code specification. Change-Id: Ibfe897a406db027ac716fa216a9b8fba5885ec19
-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"