Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autotest: ensure latest log is timestamped, small and not growing #26486

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4372,7 +4372,7 @@ def TestLogDownloadMAVProxyNetwork(self, upload_logs=False):
self.context_push()
self.set_parameters({
"NET_ENABLED": 1,
"LOG_DISARMED": 1,
"LOG_DISARMED": 0,
"LOG_DARM_RATEMAX": 1, # make small logs
# UDP client
"NET_P1_TYPE": 1,
Expand Down Expand Up @@ -4409,6 +4409,17 @@ def TestLogDownloadMAVProxyNetwork(self, upload_logs=False):
})
self.reboot_sitl()

# ensure the latest log file is very small:
self.context_push()
self.set_parameter('LOG_DISARMED', 1)
self.delay_sim_time(15)
peterbarker marked this conversation as resolved.
Show resolved Hide resolved
self.progress(f"Current onboard log filepath {self.current_onboard_log_filepath()}")
self.context_pop()

# ensure that the autopilot has a timestamp on that file by
# now, or MAVProxy does not see it as the latest log:
self.wait_gps_fix_type_gte(3)

self.set_parameter('SIM_SPEEDUP', 1)

endpoints = [('UDPClient', ':16001') ,
Expand Down
Loading