Tools: autotest: add support for parameter file inheritance

This commit is contained in:
Mark Whitehorn 2019-04-14 07:44:04 -06:00 committed by Andrew Tridgell
parent 42dccc7186
commit cfbda3fd3e

View File

@ -41,7 +41,12 @@ class AutoTestQuadPlane(AutoTest):
def defaults_filepath(self):
vinfo = vehicleinfo.VehicleInfo()
defaults_file = vinfo.options["ArduPlane"]["frames"][self.frame]["default_params_filename"]
return os.path.join(testdir, defaults_file)
if isinstance(defaults_file, str):
defaults_file = [defaults_file]
defaults_list = []
for d in defaults_file:
defaults_list.append(os.path.join(testdir, d))
return ','.join(defaults_list)
def is_plane(self):
return True