diff --git a/launch/test/launch/test_execute_process.py b/launch/test/launch/test_execute_process.py index d44721821..9a422dbdb 100644 --- a/launch/test/launch/test_execute_process.py +++ b/launch/test/launch/test_execute_process.py @@ -152,7 +152,7 @@ def generate_launch_description(): return LaunchDescription([ ExecuteProcess( - cmd=[sys.executable, '-c', "print('action'); false"], + cmd=[sys.executable, '-c', "import sys; print('action'); sys.exit(1)"], respawn=True, respawn_delay=respawn_delay, on_exit=on_exit_callback ),