debug: test test log parsing
This commit is contained in:
parent
85d2a685f5
commit
61d517a6ad
@ -11,8 +11,10 @@ variables:
|
||||
commands:
|
||||
- |
|
||||
output=$(hass -c $CI_WORKSPACE --script check_config 2>&1)
|
||||
echo "$output"
|
||||
if echo "$output" | grep -v "Unknown device" | grep -q "ERROR"; then
|
||||
filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device")
|
||||
echo "$filtered_output"
|
||||
if [ -n "$filtered_output" ]; then
|
||||
echo "Configuration check failed"
|
||||
exit 1
|
||||
fi
|
||||
environment:
|
||||
|
Loading…
Reference in New Issue
Block a user