Skip to content
Snippets Groups Projects
Commit 9ccf246a authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

Task SW-311: Fixed bug: test signal stop handlers get registered before signal is turned on.

parent 759edcc9
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,11 @@ def safely_start_test_signal(start_cmd, stop_cmd):
:param stop_cmd: the command to stop on exit as shell-executable string
"""
# set things up sp signal is stopped when check_hardware terminates
register_signal_handlers(stop_cmd)
register_exit_handler(stop_cmd)
start_watchdog_daemon(os.getpid(), stop_cmd) # this alone would actually be sufficient
# start signal
try:
check_call(start_cmd, shell=True)
......@@ -378,11 +383,6 @@ def safely_start_test_signal(start_cmd, stop_cmd):
logger.error("Could not start the test signal! Non-zero return code from start_cmd (%s)." % start_cmd, ex)
raise
# set things up sp signal is stopped when check_hardware terminates
register_signal_handlers(stop_cmd)
register_exit_handler(stop_cmd)
start_watchdog_daemon(os.getpid(), stop_cmd) # this alone would actually be sufficient
def safely_start_test_signal_from_ParameterSet(settings):
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment