+# Log the final result
+if [ ${RC} -eq 0 ]; then
+ set +x
+ echo
+ echo "=============================================================================="
+ echo "Final result of all test loops: | PASS |"
+ echo "All critical tests have passed."
+ echo "=============================================================================="
+ echo
+ set -x
+elif [ ${MORE_FAILS} -eq 0 ]; then
+ if [ ${RC} -eq 1 ]; then
+ HLP_STR="test has"
+ else
+ HLP_STR="tests have"
+ fi
+ set +x
+ echo
+ echo "=============================================================================="
+ echo "Final result of all test loops: | FAIL |"
+ echo "${RC} critical ${HLP_STR} failed."
+ echo "=============================================================================="
+ echo
+ set -x
+else
+ set +x
+ echo
+ echo "=============================================================================="
+ echo "Final result of all test loops: | FAIL |"
+ echo "More then 250 critical tests have failed in one test loop."
+ echo "=============================================================================="
+ echo
+ set -x
+fi
+
+echo Post-processing test data...
+
+# Rebot output post-processing