mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
autotest: push context after customising cmdline
doing things in the other order causes problems when running the complete suite
This commit is contained in:
parent
5d1e105534
commit
973510a4ff
@ -1892,8 +1892,6 @@ class AutoTestCopter(AutoTest):
|
||||
def fly_autotune_switch(self):
|
||||
"""Test autotune on a switch with gains being saved"""
|
||||
|
||||
self.context_push()
|
||||
|
||||
# autotune changes a set of parameters on the vehicle which
|
||||
# are not in our context. That changes the flight
|
||||
# characterstics, which we can't afford between runs. So
|
||||
@ -1901,6 +1899,8 @@ class AutoTestCopter(AutoTest):
|
||||
# complete by "customising" the commandline here:
|
||||
self.customise_SITL_commandline([])
|
||||
|
||||
self.context_push()
|
||||
|
||||
ex = None
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user