autotest: push context after customising cmdline

doing things in the other order causes problems when running the
complete suite
This commit is contained in:
Peter Barker 2021-02-26 12:02:12 +11:00 committed by Peter Barker
parent 5d1e105534
commit 973510a4ff
1 changed files with 2 additions and 2 deletions

View File

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