Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Aug 14, 2024
1 parent b9ada6d commit 3524ec5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/tiup-cluster/script/detect_error.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ set -eu
err_num=$(find $1 -name "*.log" -exec grep "\[ERROR\]" {} \; | wc -l)
if [ ${err_num} != "0" ]; then
echo "detect ${err_num} [ERROR] log"
exit 1
fi

err_num=$(find $1 -name "*stderr.log" -exec cat {} \; | wc -l)
if [ ${err_num} != "0" ]; then
echo "detect ${err_num} stderr log"
exit 1
fi

echo "no error log found"

0 comments on commit 3524ec5

Please sign in to comment.