debug: test test log parsing
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/notify unknown status

This commit is contained in:
Robert Kaussow 2024-10-18 11:51:32 +02:00
parent 65a29051e4
commit 3664c4b7eb
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -12,14 +12,7 @@ variables:
- | - |
output=$(hass -c $CI_WORKSPACE --script check_config 2>&1) output=$(hass -c $CI_WORKSPACE --script check_config 2>&1)
echo "$output" echo "$output"
error_found=false if echo "$output" | grep -v "Unknown device" | grep -q "ERROR"; then
while IFS= read -r line; do
if echo "$line" | grep -q "ERROR" && ! echo "$line" | grep -q "Unknown device"; then
error_found=true
echo "Error found: $line"
fi
done <<< "$output"
if [ "$error_found" = true ]; then
exit 1 exit 1
fi fi
environment: environment: