From f3271ce0a678ddac33bb3779eb87ec62527266ec Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 19 Oct 2023 19:13:42 +1100 Subject: [PATCH] autotest: add a load_params_file method to take params from test dir --- Tools/autotest/vehicle_test_suite.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 3f2e56322f..4d153a6583 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -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(