Skip to content

Commit

Permalink
Print failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Aug 11, 2023
1 parent ffb8f61 commit ef72f35
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test_driver/tizen/chip_tests/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ XFAIL_TESTS=(
TestPASESession
)

FAILED=()
STATUS=0

# Run all executables in the /mnt/chip directory except the runner.sh script
while IFS= read -r TEST; do

Expand All @@ -47,10 +49,16 @@ while IFS= read -r TEST; do
if [ "$RV" -eq 0 ]; then
echo -e "DONE: \e[32mSUCCESS\e[0m"
else
FAILED+=("$NAME")
STATUS=$((STATUS + 1))
echo -e "DONE: \e[31mFAIL\e[0m"
fi

done < <(find /mnt/chip -type f -executable ! -name runner.sh)

if [ ! "$STATUS" -eq 0 ]; then
echo
echo "### FAILED: ${FAILED[*]}"
fi

exit "$STATUS"

0 comments on commit ef72f35

Please sign in to comment.