autotest: break out a run_replay method
This commit is contained in:
parent
eb539f2c4a
commit
e2ef47b221
@ -9225,13 +9225,7 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
|
||||
(current_log_filepath, os.path.getsize(current_log_filepath))
|
||||
))
|
||||
|
||||
util.run_cmd(
|
||||
['build/sitl/tool/Replay', current_log_filepath],
|
||||
directory=util.topdir(),
|
||||
checkfail=True,
|
||||
show=True,
|
||||
output=True,
|
||||
)
|
||||
self.run_replay(current_log_filepath)
|
||||
|
||||
self.context_pop()
|
||||
|
||||
|
@ -13852,6 +13852,17 @@ switch value'''
|
||||
# heading seemingly indefinitely.
|
||||
self.reboot_sitl()
|
||||
|
||||
def run_replay(self, filepath):
|
||||
'''runs replay in filepath, returns filepath to Replay logfile'''
|
||||
util.run_cmd(
|
||||
['build/sitl/tool/Replay', filepath],
|
||||
directory=util.topdir(),
|
||||
checkfail=True,
|
||||
show=True,
|
||||
output=True,
|
||||
)
|
||||
return self.current_onboard_log_filepath()
|
||||
|
||||
def AHRS_ORIENTATION(self):
|
||||
'''test AHRS_ORIENTATION parameter works'''
|
||||
self.context_push()
|
||||
|
Loading…
Reference in New Issue
Block a user