Skip to content

Commit

Permalink
Empty list accepts all codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Timple committed Jun 18, 2024
1 parent b9d3cd9 commit 49b2361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros2_easy_test/ros2_easy_test/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def with_launch_file( # noqa: C901
It applies individually to both shutting down the environment and the launch process.
acceptable_return_codes:
Acceptable return codes for the launch process. By default, both SUCCESS (0) and the result code
of SIGINT (130) are acceptable.
of SIGINT (130) are acceptable. Empty list accepts all codes.
kwargs: Passed to the :class:`ros2_easy_test.env.ROS2TestEnvironment`
See Also:
Expand Down Expand Up @@ -357,7 +357,7 @@ def wrapper(*args_inner, **kwargs_inner) -> None:
return_code = ros2_process.wait(timeout=shutdown_timeout / 2)

# Check return codes
return_code_problematic = return_code not in acceptable_return_codes
return_code_problematic = acceptable_return_codes and return_code not in acceptable_return_codes

if return_code_problematic:
if test_function_exception is None:
Expand Down

0 comments on commit 49b2361

Please sign in to comment.