mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Tools: autotest: vehicle_test_suite: change from SIGSTOP to SIGTSTP except cygwin
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user