Skip to content

Commit 7f08cdf

Browse files
committed
[PLUTO-1411] Add script
1 parent 6912298 commit 7f08cdf

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

run-tool-tests.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,20 @@ jq --sort-keys "." actual.sarif > actual.sorted.json
4040

4141
# Run diff and capture its exit code
4242
if ! 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"
4548
fi
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

0 commit comments

Comments
 (0)