mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Tools: autotest: add support for parameter file inheritance
This commit is contained in:
parent
42dccc7186
commit
cfbda3fd3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user