"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "run-tests.sh" between
glusterfs-8.1.tar.gz and glusterfs-8.2.tar.gz

About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x (latest version).

run-tests.sh  (glusterfs-8.1):run-tests.sh  (glusterfs-8.2)
skipping to change at line 331 skipping to change at line 331
result="0000000" ;; result="0000000" ;;
esac esac
echo "$result" echo "$result"
} }
function run_tests() function run_tests()
{ {
RES=0 RES=0
FLAKY=''
FAILED='' FAILED=''
TESTS_NEEDED_RETRY='' TESTS_NEEDED_RETRY=''
GENERATED_CORE='' GENERATED_CORE=''
total_tests=0 total_tests=0
selected_tests=0 selected_tests=0
skipped_bad_tests=0 skipped_bad_tests=0
skipped_known_issue_tests=0 skipped_known_issue_tests=0
total_run_tests=0 total_run_tests=0
# key = path of .t file; value = time taken to run the .t file # key = path of .t file; value = time taken to run the .t file
skipping to change at line 435 skipping to change at line 436
fi fi
TMP_RES=$? TMP_RES=$?
tar_logs "$t" tar_logs "$t"
if ((${TMP_RES} == 124)); then if ((${TMP_RES} == 124)); then
echo "${t} timed out after ${cmd_timeout} seconds" echo "${t} timed out after ${cmd_timeout} seconds"
fi fi
TESTS_NEEDED_RETRY="${TESTS_NEEDED_RETRY}${t} " TESTS_NEEDED_RETRY="${TESTS_NEEDED_RETRY}${t} "
fi fi
if [ ${TMP_RES} -ne 0 ] ; then if [ ${TMP_RES} -ne 0 ] ; then
RES=${TMP_RES} if [[ "$t" == *"tests/000-flaky/"* ]]; then
FAILED="${FAILED}${t} " FLAKY="${FLAKY}${t} "
echo "FAILURE -> SUCCESS: Flaky test"
TMP_RES=0
else
RES=${TMP_RES}
FAILED="${FAILED}${t} "
fi
fi fi
new_cores=$(ls /*-*.core 2> /dev/null | wc -l) new_cores=$(ls /*-*.core 2> /dev/null | wc -l)
if [ x"$new_cores" != x"$old_cores" ]; then if [ x"$new_cores" != x"$old_cores" ]; then
core_diff=$((new_cores-old_cores)) core_diff=$((new_cores-old_cores))
echo "$t: $core_diff new core files" echo "$t: $core_diff new core files"
RES=1 RES=1
GENERATED_CORE="${GENERATED_CORE}${t} " GENERATED_CORE="${GENERATED_CORE}${t} "
fi fi
echo "End of test $t" echo "End of test $t"
skipping to change at line 472 skipping to change at line 480
echo "Number of tests that were run: $total_run_tests" echo "Number of tests that were run: $total_run_tests"
echo echo
echo "Tests ordered by time taken, slowest to fastest: " echo "Tests ordered by time taken, slowest to fastest: "
echo $section_separator$section_separator echo $section_separator$section_separator
for key in "${!ELAPSEDTIMEMAP[@]}" for key in "${!ELAPSEDTIMEMAP[@]}"
do do
echo "$key - ${ELAPSEDTIMEMAP["$key"]} second" echo "$key - ${ELAPSEDTIMEMAP["$key"]} second"
done | sort -rn -k3 done | sort -rn -k3
# Output the errors into a file # initialize the output file
echo > "${result_output}" echo > "${result_output}"
# Output the errors into a file
if [ ${RES} -ne 0 ] ; then if [ ${RES} -ne 0 ] ; then
FAILED=$( echo ${FAILED} | tr ' ' '\n' | sort -u ) FAILED=$( echo ${FAILED} | tr ' ' '\n' | sort -u )
FAILED_COUNT=$( echo -n "${FAILED}" | grep -c '^' ) FAILED_COUNT=$( echo -n "${FAILED}" | grep -c '^' )
echo -e "\n$FAILED_COUNT test(s) failed \n${FAILED}" >> "${result_output }" echo -e "\n$FAILED_COUNT test(s) failed \n${FAILED}" >> "${result_output }"
GENERATED_CORE=$( echo ${GENERATED_CORE} | tr ' ' '\n' | sort -u ) GENERATED_CORE=$( echo ${GENERATED_CORE} | tr ' ' '\n' | sort -u )
GENERATED_CORE_COUNT=$( echo -n "${GENERATED_CORE}" | grep -c '^' ) GENERATED_CORE_COUNT=$( echo -n "${GENERATED_CORE}" | grep -c '^' )
echo -e "\n$GENERATED_CORE_COUNT test(s) generated core \n${GENERATED_CO RE}" >> "${result_output}" echo -e "\n$GENERATED_CORE_COUNT test(s) generated core \n${GENERATED_CO RE}" >> "${result_output}"
cat "${result_output}" cat "${result_output}"
fi fi
TESTS_NEEDED_RETRY=$( echo ${TESTS_NEEDED_RETRY} | tr ' ' '\n' | sort -u ) TESTS_NEEDED_RETRY=$( echo ${TESTS_NEEDED_RETRY} | tr ' ' '\n' | sort -u )
RETRY_COUNT=$( echo -n "${TESTS_NEEDED_RETRY}" | grep -c '^' ) RETRY_COUNT=$( echo -n "${TESTS_NEEDED_RETRY}" | grep -c '^' )
if [ ${RETRY_COUNT} -ne 0 ] ; then if [ ${RETRY_COUNT} -ne 0 ] ; then
echo -e "\n${RETRY_COUNT} test(s) needed retry \n${TESTS_NEEDED_RETRY}" echo -e "\n${RETRY_COUNT} test(s) needed retry \n${TESTS_NEEDED_RETRY}"
>> "${result_output}"
fi
FLAKY_TESTS_FAILED=$( echo ${FLAKY} | tr ' ' '\n' | sort -u )
RETRY_COUNT=$( echo -n "${FLAKY_TESTS_FAILED}" | grep -c '^' )
if [ ${RETRY_COUNT} -ne 0 ] ; then
echo -e "\n${RETRY_COUNT} flaky test(s) marked as success even though th
ey failed \n${FLAKY_TESTS_FAILED}" >> "${result_output}"
fi fi
echo echo
echo "Result is $RES" echo "Result is $RES"
echo echo
return ${RES} return ${RES}
} }
function run_head_tests() function run_head_tests()
{ {
 End of changes. 6 change blocks. 
4 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)