I’m trying to run an autotest on my Mac, but each test fails because each test starts with a FC reboot and the autotest script isn’t reconnecting after the reboot. The arduplane process is still running, but if I run it in lldb, it terminates.
AT-0004.0: get_parameter(STAT_RESET): PARAM_VALUE {param_id : STAT_RESET, param_value : 198805520.0, param_type : 6, param_count : 1346, param_index : 65535}
AT-0004.0: Sending param_request_read for (STAT_BOOTCNT)
AT-0004.1: get_parameter(STAT_BOOTCNT): PARAM_VALUE {param_id : STAT_BOOTCNT, param_value : 1.0, param_type : 4, param_count : 1346, param_index : 65535}
AT-0004.1: Executing reboot command
AT-0004.1: Sending COMMAND_LONG to (1,1) (MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN) (p1=1.000000 p2=1.000000 p3=0.000000 p4=0.000000 p5=0.000000 p6=0.000000 p7=0.000000)
AT-0004.1: AP: EKF3 IMU0 initialised
AT-0004.1: AP: EKF3 IMU1 initialised
AT-0004.1: ACK received: COMMAND_ACK {command : 246, result : 0, progress : 0, result_param2 : 0, target_system : 0, target_component : 0} (0.000000s)
AT-0004.1: Sending param_request_read for (STAT_BOOTCNT)
EOF on TCP socket
Attempting reconnect
[Errno 61] Connection refused sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
[Errno 22] Invalid argument sleeping
>>>> FAILED STEP: test.Plane.FenceStatic at Tue Apr 19 16:45:28 2022 (Did not detect reboot)
Traceback (most recent call last):
File "/Users/tim/ArduPilot/master/Tools/autotest/autotest.py", line 740, in run_tests
success = run_step(step)
File "/Users/tim/ArduPilot/master/Tools/autotest/autotest.py", line 549, in run_step
return run_specific_test(specific_test_to_run, binary, **fly_opts)
File "/Users/tim/ArduPilot/master/Tools/autotest/autotest.py", line 426, in run_specific_test
return tester.run_tests([a])
File "/Users/tim/ArduPilot/master/Tools/autotest/common.py", line 9834, in run_tests
self.init()
File "/Users/tim/ArduPilot/master/Tools/autotest/common.py", line 7040, in init
self.apply_default_parameters()
File "/Users/tim/ArduPilot/master/Tools/autotest/common.py", line 2538, in apply_default_parameters
self.reboot_sitl()
File "/Users/tim/ArduPilot/master/Tools/autotest/common.py", line 1897, in reboot_sitl
self.reboot_sitl_mav(required_bootcount=required_bootcount)
File "/Users/tim/ArduPilot/master/Tools/autotest/common.py", line 1878, in reboot_sitl_mav
self.detect_and_handle_reboot(old_bootcount, required_bootcount=required_bootcount)
File "/Users/tim/ArduPilot/master/Tools/autotest/common.py", line 1913, in detect_and_handle_reboot
raise AutoTestTimeoutException("Did not detect reboot")
common.AutoTestTimeoutException: Did not detect reboot
FAILED 1 tests: ['test.Plane.FenceStatic']
While this is happening ps -ax shows the arduplane process continues to run in the background. (i.e it’s not crashing!).