Browse Source

autotest: param_parse.py: validate @User field to be Standard or Avanced

c415-sdk
Peter Barker 4 years ago committed by Peter Barker
parent
commit
fdb31a6419
  1. 4
      Tools/autotest/param_metadata/param_parse.py

4
Tools/autotest/param_metadata/param_parse.py

@ -358,6 +358,10 @@ def validate(param): @@ -358,6 +358,10 @@ def validate(param):
if (hasattr(param, "Units")):
if (param.__dict__["Units"] != "") and (param.__dict__["Units"] not in known_units):
error("unknown units field '%s'" % param.__dict__["Units"])
# Validate User
if (hasattr(param, "User")):
if param.User.strip() not in ["Standard", "Advanced"]:
error("unknown user (%s)" % param.User.strip())
for vehicle in vehicles:
for param in vehicle.params:

Loading…
Cancel
Save