File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
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."
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
You can’t perform that action at this time.
0 commit comments