Skip to content

Commit ad8c69d

Browse files
committed
Actually consider valid models as valid
1 parent cb02299 commit ad8c69d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/validate-models

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SCHEMA=$ROOT_DIR/bauer_bsm/sunspec/models/smdx/smdx.xsd
99
function validate {
1010
# The name attribute is used throughout the SunSpec models but not declared
1111
# in the schema. Ignore this issue.
12-
xmllint --noout --schema $SCHEMA $MODELS_DIR/smdx_*.xml 2>&1 | grep -v "Schemas validity error : Element 'model', attribute 'name': The attribute 'name' is not allowed." | grep -v "\.xml fails to validate$"
12+
xmllint --noout --schema $SCHEMA $MODELS_DIR/smdx_*.xml 2>&1 | grep -v " validates$" | grep -v "Schemas validity error : Element 'model', attribute 'name': The attribute 'name' is not allowed." | grep -v "\.xml fails to validate$"
1313
}
1414

1515

0 commit comments

Comments
 (0)