File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,16 @@ jobs:
4747 if [ -s /tmp/failed_tools.txt ]; then
4848 echo -e "\n❌ The following tools failed their tests:"
4949 cat /tmp/failed_tools.txt
50+ echo "::error::Some tool tests failed. Please check the logs above for details."
5051 exit 1
5152 fi
5253
5354 - name : Check test results
5455 if : steps.run_tests.outcome == 'failure'
5556 run : |
57+ if [ -s /tmp/failed_tools.txt ]; then
58+ echo -e "\n❌ The following tools failed their tests:"
59+ cat /tmp/failed_tools.txt
60+ fi
5661 echo "Some tool tests failed. Please check the logs above for details."
5762 exit 1
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Initialize failed tools file
4- echo " " > /tmp/failed_tools.txt
5-
63# Check if tool name is provided
74if [ -z " $1 " ]; then
85 echo " Usage: $0 <tool_name>"
@@ -51,19 +48,10 @@ if ! diff expected.sorted.json actual.sorted.json; then
5148 cat actual.sorted.json
5249 # Write to a file to track failures
5350 echo " $TOOL_NAME " >> /tmp/failed_tools.txt
54- # Set a flag to indicate failure
55- echo " 1" > /tmp/test_failed
51+ exit 1
5652else
5753 echo " ✅ Tests passed successfully for $TOOL_NAME "
5854fi
5955
6056# Return to original directory
61- cd ../../../../..
62-
63- # Check if any tools failed
64- if [ -f /tmp/test_failed ]; then
65- echo -e " \n❌ The following tools failed their tests:"
66- cat /tmp/failed_tools.txt
67- rm /tmp/failed_tools.txt /tmp/test_failed
68- exit 1
69- fi
57+ cd ../../../../..
You can’t perform that action at this time.
0 commit comments