Tools: autotest: vehicle_test_suite: change from SIGSTOP to SIGTSTP except cygwin

This commit is contained in:
Iampete1
2025-10-06 10:34:41 +11:00
committed by Peter Barker
parent 1d92d6f228
commit 33631df2e7
+10 -1
View File
@@ -3331,7 +3331,16 @@ class TestSuite(ABC):
'''temporarily stop the SITL process from running. Note that
simulation time will not move forward!'''
# self.progress("Pausing SITL")
self.sitl.kill(signal.SIGSTOP)
if sys.platform == 'cygwin':
# Maintain original behaviour under cygwin as SIGTSTP has not been tested
self.sitl.kill(signal.SIGSTOP)
else:
# SIGTSTP can be ignored by GDB allowing easier debugging rather than having GDB break at every pause
# EG add:
# handle SIGTSTP nostop noprint pass
# handle SIGCONT nostop noprint pass
self.sitl.kill(signal.SIGTSTP)
def unpause_SITL(self):
# self.progress("Unpausing SITL")