autotest: add a load_params_file method to take params from test dir

This commit is contained in:
Peter Barker 2023-10-19 19:13:42 +11:00 committed by Peter Barker
parent 22360b43a8
commit f3271ce0a6

View File

@ -14812,6 +14812,11 @@ SERIAL5_BAUD 128
filepath = util.reltopdir(os.path.join("Tools", "autotest", "default_params", filename))
self.repeatedly_apply_parameter_filepath(filepath)
def load_params_file(self, filename):
'''load a file from test-specific directory'''
filepath = os.path.join(testdir, self.current_test_name_directory, filename)
self.repeatedly_apply_parameter_filepath(filepath)
def send_pause_command(self):
'''pause AUTO/GUIDED modes'''
self.run_cmd(