mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
autotest: move log_name method for balancebot to within class
This commit is contained in:
parent
6393ef6b8e
commit
71d1c050b3
@ -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"
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user