File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 32
32
chmod +x run-tool-tests.sh
33
33
34
34
# Initialize failed tools file
35
- echo "" > /tmp/failed_tools.txt
35
+ rm -f /tmp/failed_tools.txt
36
+ touch /tmp/failed_tools.txt
36
37
37
38
# Run tests for each tool directory
38
39
for tool_dir in plugins/tools/*/; do
44
45
done
45
46
46
47
# 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
48
49
echo -e "\n❌ The following tools failed their tests:"
49
50
cat /tmp/failed_tools.txt
50
51
echo "::error::Some tool tests failed. Please check the logs above for details."
56
57
- name : Check test results
57
58
if : steps.run_tests.outcome == 'failure'
58
59
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
60
61
echo -e "\n❌ The following tools failed their tests:"
61
62
cat /tmp/failed_tools.txt
62
63
fi
You can’t perform that action at this time.
0 commit comments