File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ if ! diff expected.sorted.json actual.sorted.json; then
5151 cat actual.sorted.json
5252 # Write to a file to track failures
5353 echo " $TOOL_NAME " >> /tmp/failed_tools.txt
54+ # Set a flag to indicate failure
55+ echo " 1" > /tmp/test_failed
5456else
5557 echo " ✅ Tests passed successfully for $TOOL_NAME "
5658fi
5961cd ../../../../..
6062
6163# Check if any tools failed
62- if [ -s /tmp/failed_tools.txt ]; then
63- # Only print the message if we haven't printed it before
64- if [ -z " $FAILED_TOOLS_PRINTED " ]; then
65- echo -e " \n❌ The following tools failed their tests:"
66- cat /tmp/failed_tools.txt
67- export FAILED_TOOLS_PRINTED=1
68- fi
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
6968 exit 1
7069fi
You can’t perform that action at this time.
0 commit comments