Skip to content

Commit fa834a1

Browse files
committed
ci: build: Check for error in example dtb
Catch errors such as: /.../Documentation/.../adi,ad1234.example.dtb: \ adc@0: Unevaluated properties are not allowed ('...' was unexpected) Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent e68057a commit fa834a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ check_dt_binding_check() {
123123
case "$file" in
124124
*.yaml)
125125
local relative_yaml=${file#Documentation/devicetree/bindings/}
126+
local file_ex=$(realpath ${file%.yaml}.example.dtb)
126127

127128
if [[ "$relative_yaml" = "$file" ]]; then
128129
echo "$file not a devicetree binding, skip check..."
@@ -148,8 +149,8 @@ check_dt_binding_check() {
148149

149150
echo "$error_txt"
150151

151-
# file name appears in output if it contains errors
152-
if echo "$error_txt" | grep -qF "$file"; then
152+
# file name or reapath of example appears in output if it contains errors
153+
if echo "$error_txt" | grep -qF -e "$file" -e "$file_ex"; then
153154
fail=1
154155
echo "::error file=$file,line=0::dt_binding_check contain errors"
155156
fi

0 commit comments

Comments
 (0)