debug: test test log parsing
This commit is contained in:
parent
ebcdaf3f6e
commit
65a29051e4
@ -12,8 +12,14 @@ variables:
|
||||
- |
|
||||
output=$(hass -c $CI_WORKSPACE --script check_config 2>&1)
|
||||
echo "$output"
|
||||
if echo "$output" | grep -q "ERROR"; then
|
||||
echo "Configuration check failed"
|
||||
error_found=false
|
||||
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
|
||||
fi
|
||||
environment:
|
||||
|
Loading…
Reference in New Issue
Block a user