File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,20 @@ jq --sort-keys "." actual.sarif > actual.sorted.json
4040
4141# Run diff and capture its exit code
4242if ! diff expected.sorted.json actual.sorted.json; then
43- echo " Error: Test output does not match expected output for $TOOL_NAME "
44- exit 1
43+ echo " ❌ Test output does not match expected output for $TOOL_NAME "
44+ # Write to a file to track failures
45+ echo " $TOOL_NAME " >> /tmp/failed_tools.txt
46+ else
47+ echo " ✅ Tests passed successfully for $TOOL_NAME "
4548fi
4649
47- echo " ✅ Tests passed successfully for $TOOL_NAME "
48-
4950# Return to original directory
50- cd ../../../../..
51+ cd ../../../../..
52+
53+ # Check if any tools failed
54+ if [ -f /tmp/failed_tools.txt ]; then
55+ echo -e " \n❌ The following tools failed their tests:"
56+ cat /tmp/failed_tools.txt
57+ rm /tmp/failed_tools.txt
58+ exit 1
59+ fi
You can’t perform that action at this time.
0 commit comments