Skip to content

Commit 3ca61f0

Browse files
committed
[PLUTO-1411] Add script
1 parent a68c86e commit 3ca61f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/it-test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
chmod +x run-tool-tests.sh
3333
3434
# Initialize failed tools file
35-
echo "" > /tmp/failed_tools.txt
35+
rm -f /tmp/failed_tools.txt
36+
touch /tmp/failed_tools.txt
3637
3738
# Run tests for each tool directory
3839
for tool_dir in plugins/tools/*/; do
@@ -44,7 +45,7 @@ jobs:
4445
done
4546
4647
# Check if any tools failed
47-
if [ -s /tmp/failed_tools.txt ]; then
48+
if [ -s /tmp/failed_tools.txt ] && [ "$(wc -l < /tmp/failed_tools.txt)" -gt 0 ]; then
4849
echo -e "\n❌ The following tools failed their tests:"
4950
cat /tmp/failed_tools.txt
5051
echo "::error::Some tool tests failed. Please check the logs above for details."
@@ -56,7 +57,7 @@ jobs:
5657
- name: Check test results
5758
if: steps.run_tests.outcome == 'failure'
5859
run: |
59-
if [ -s /tmp/failed_tools.txt ]; then
60+
if [ -s /tmp/failed_tools.txt ] && [ "$(wc -l < /tmp/failed_tools.txt)" -gt 0 ]; then
6061
echo -e "\n❌ The following tools failed their tests:"
6162
cat /tmp/failed_tools.txt
6263
fi

0 commit comments

Comments
 (0)