Skip to content

Commit 12c0563

Browse files
committed
move registration of event handlers before including test file
Signed-off-by: William Woodall <[email protected]>
1 parent e1173c5 commit 12c0563

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

launch_testing/launch_testing/test_runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ def run(self):
122122
# the test and add our own event handlers for process IO and process exit:
123123
launch_description = LaunchDescription([
124124
*self._test_run_preamble,
125-
launch.actions.IncludeLaunchDescription(
126-
launch.LaunchDescriptionSource(launch_description=test_ld),
127-
launch_arguments=parsed_launch_arguments
128-
),
129125
RegisterEventHandler(
130126
OnProcessExit(on_exit=lambda info, unused: proc_info.append(info))
131127
),
@@ -135,6 +131,10 @@ def run(self):
135131
on_stderr=proc_output.append,
136132
)
137133
),
134+
launch.actions.IncludeLaunchDescription(
135+
launch.LaunchDescriptionSource(launch_description=test_ld),
136+
launch_arguments=parsed_launch_arguments
137+
),
138138
])
139139

140140
self._launch_service.include_launch_description(

0 commit comments

Comments
 (0)