autotest: move log_name method for balancebot to within class

This commit is contained in:
Peter Barker 2022-09-08 20:47:50 +10:00 committed by Peter Barker
parent 6393ef6b8e
commit 71d1c050b3
2 changed files with 9 additions and 4 deletions

View File

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

View File

@ -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()