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

This commit is contained in:
Peter Barker 2020-09-14 08:38:12 +10:00 committed by Peter Barker
parent 7c64f1f685
commit fdb31a6419
1 changed files with 4 additions and 0 deletions

View File

@ -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: