mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
autotest: raise an exception in the case we don't load a parameters file
This commit is contained in:
parent
d7ef63deaf
commit
2f90abd7ea
@ -1382,7 +1382,8 @@ class AutoTest(ABC):
|
||||
return self.repeatedly_apply_parameter_file_mavproxy(filepath)
|
||||
parameters = mavparm.MAVParmDict()
|
||||
# correct_parameters = set()
|
||||
parameters.load(filepath)
|
||||
if not parameters.load(filepath):
|
||||
raise ValueError("Param load failed")
|
||||
param_dict = {}
|
||||
for p in parameters.keys():
|
||||
param_dict[p] = parameters[p]
|
||||
|
Loading…
Reference in New Issue
Block a user