autotest: raise an exception in the case we don't load a parameters file

This commit is contained in:
Peter Barker 2021-10-20 21:17:12 +11:00 committed by Peter Barker
parent d7ef63deaf
commit 2f90abd7ea

View File

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