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