Skip to content

Commit

Permalink
validator: Add 'test,' compatible prefix for test cases
Browse files Browse the repository at this point in the history
There's not really much need to document test cases which need test
bindings, so add 'test,' as an allowed compatible string vendor prefix.

Signed-off-by: Rob Herring (Arm) <[email protected]>
  • Loading branch information
robherring committed Jun 4, 2024
1 parent 7c8798f commit 833054f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dtschema/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def make_compatible_schema(schemas):
# Allow 'foo' values for examples
compat_sch += [{'pattern': '^foo'}]

# Allow 'test,' vendor prefix for test cases
compat_sch += [{'pattern': '^test,'}]

prog = re.compile(r'.*[\^\[{\(\$].*')
for c in compatible_list:
if prog.match(c):
Expand Down

0 comments on commit 833054f

Please sign in to comment.