Skip to content

Commit e0f6395

Browse files
committed
[PLUTO-1411] Add script
1 parent 7c86e46 commit e0f6395

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

run-tool-tests.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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
5456
else
5557
echo "✅ Tests passed successfully for $TOOL_NAME"
5658
fi
@@ -59,12 +61,9 @@ fi
5961
cd ../../../../..
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
7069
fi

0 commit comments

Comments
 (0)