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__))
|
testdir = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
|
|
||||||
def log_name(self):
|
|
||||||
return "BalanceBot"
|
|
||||||
|
|
||||||
|
|
||||||
class AutoTestBalanceBot(AutoTestRover):
|
class AutoTestBalanceBot(AutoTestRover):
|
||||||
|
|
||||||
|
def log_name(self):
|
||||||
|
return "BalanceBot"
|
||||||
|
|
||||||
def vehicleinfo_key(self):
|
def vehicleinfo_key(self):
|
||||||
return "Rover"
|
return "Rover"
|
||||||
|
|
||||||
|
@ -2441,6 +2441,9 @@ class AutoTest(ABC):
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
vehicle = self.log_name()
|
vehicle = self.log_name()
|
||||||
|
if vehicle == 'BalanceBot':
|
||||||
|
# same binary and parameters as Rover
|
||||||
|
return
|
||||||
vehicle_map = {
|
vehicle_map = {
|
||||||
"ArduCopter": "Copter",
|
"ArduCopter": "Copter",
|
||||||
"HeliCopter": "Copter",
|
"HeliCopter": "Copter",
|
||||||
@ -10535,6 +10538,9 @@ switch value'''
|
|||||||
|
|
||||||
def test_parameters(self):
|
def test_parameters(self):
|
||||||
'''general small tests for parameter system'''
|
'''general small tests for parameter system'''
|
||||||
|
if self.is_balancebot():
|
||||||
|
# same binary and parameters as Rover
|
||||||
|
return
|
||||||
self.test_parameter_documentation()
|
self.test_parameter_documentation()
|
||||||
self.test_parameters_mis_total()
|
self.test_parameters_mis_total()
|
||||||
self.test_parameters_download()
|
self.test_parameters_download()
|
||||||
|
Loading…
Reference in New Issue
Block a user