Skip to content

Commit ed361aa

Browse files
committed
[PLUTO-1411] Add script
1 parent 1ba1901 commit ed361aa

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/it-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

run-tool-tests.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
22

3-
# Initialize failed tools file
4-
echo "" > /tmp/failed_tools.txt
5-
63
# Check if tool name is provided
74
if [ -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
5652
else
5753
echo "✅ Tests passed successfully for $TOOL_NAME"
5854
fi
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 ../../../../..

0 commit comments

Comments
 (0)