Skip to content

Commit

Permalink
autotest: set SIM_SPEEDUP=1 for log download
Browse files Browse the repository at this point in the history
this may make the test more reliable
  • Loading branch information
tridge committed Mar 9, 2024
1 parent a79569c commit a70e3d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4356,6 +4356,7 @@ def TestLogDownloadMAVProxy(self, upload_logs=False):
filename = "MAVProxy-downloaded-log.BIN"
mavproxy = self.start_mavproxy()
self.mavproxy_load_module(mavproxy, 'log')
self.set_parameter('SIM_SPEEDUP', 1)
mavproxy.send("log list\n")
mavproxy.expect("numLogs")
self.wait_heartbeat()
Expand Down Expand Up @@ -4407,6 +4408,9 @@ def TestLogDownloadMAVProxyNetwork(self, upload_logs=False):
"NET_P4_IP3": 0,
})
self.reboot_sitl()

self.set_parameter('SIM_SPEEDUP', 1)

endpoints = [('UDPClient', ':16001') ,
('UDPServer', 'udpout:127.0.0.1:16002'),
('TCPClient', 'tcpin:0.0.0.0:16003'),
Expand Down Expand Up @@ -4450,6 +4454,9 @@ def TestLogDownloadMAVProxyNetwork(self, upload_logs=False):
"LOG_DISARMED": 0,
})
self.reboot_sitl()

self.set_parameter('SIM_SPEEDUP', 1)

endpoints = [('UDPMulticast', 'mcast:16005') ,
('UDPBroadcast', ':16006')]
for name, e in endpoints:
Expand Down Expand Up @@ -4487,6 +4494,9 @@ def TestLogDownloadMAVProxyCAN(self, upload_logs=False):
"CAN_D1_UC_S1_PRO": 2,
})
self.reboot_sitl()

self.set_parameter('SIM_SPEEDUP', 1)

filename = "MAVProxy-downloaded-can-log.BIN"
# port 15550 is in SITL_Periph_State.h as SERIAL4 udpclient:127.0.0.1:15550
mavproxy = self.start_mavproxy(master=':15550')
Expand Down

0 comments on commit a70e3d3

Please sign in to comment.