From 71d1c050b33d7ccd0e9069f1c8f6b9fcfa9b2170 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 8 Sep 2022 20:47:50 +1000 Subject: [PATCH] autotest: move log_name method for balancebot to within class --- Tools/autotest/balancebot.py | 7 +++---- Tools/autotest/common.py | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Tools/autotest/balancebot.py b/Tools/autotest/balancebot.py index 3c9b72ff16..0528e14ff1 100644 --- a/Tools/autotest/balancebot.py +++ b/Tools/autotest/balancebot.py @@ -18,12 +18,11 @@ from common import NotAchievedException testdir = os.path.dirname(os.path.realpath(__file__)) -def log_name(self): - return "BalanceBot" - - class AutoTestBalanceBot(AutoTestRover): + def log_name(self): + return "BalanceBot" + def vehicleinfo_key(self): return "Rover" diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 45ab7d594e..5f98b31fd0 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -2441,6 +2441,9 @@ class AutoTest(ABC): except OSError: pass vehicle = self.log_name() + if vehicle == 'BalanceBot': + # same binary and parameters as Rover + return vehicle_map = { "ArduCopter": "Copter", "HeliCopter": "Copter", @@ -10535,6 +10538,9 @@ switch value''' def test_parameters(self): '''general small tests for parameter system''' + if self.is_balancebot(): + # same binary and parameters as Rover + return self.test_parameter_documentation() self.test_parameters_mis_total() self.test_parameters_download()