Tools: autotest builds each vehicle parameters individually

This commit is contained in:
Peter Barker 2017-08-25 23:55:51 +10:00 committed by Jacob Walser
parent bff2b3986d
commit ceb611a056
1 changed files with 4 additions and 3 deletions

View File

@ -115,9 +115,10 @@ def build_examples():
def build_parameters():
"""Run the param_parse.py script."""
print("Running param_parse.py")
if util.run_cmd(util.reltopdir('Tools/autotest/param_metadata/param_parse.py'), directory=util.reltopdir('.')) != 0:
print("Failed param_parse.py")
return False
for vehicle in 'ArduPlane', 'ArduCopter', 'ArduSub', 'APMrover2', 'AntennaTracker':
if util.run_cmd([util.reltopdir('Tools/autotest/param_metadata/param_parse.py'), '--vehicle', vehicle], directory=util.reltopdir('.')) != 0:
print("Failed param_parse.py (%s)" % vehicle)
return False
return True