Skip to content

Commit

Permalink
cleanly kill gz sim in gazebo
Browse files Browse the repository at this point in the history
Signed-off-by: stevedan <[email protected]>
  • Loading branch information
stevedanomodolor committed Jun 20, 2024
1 parent 8588c53 commit 66a8190
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ def main(argv=sys.argv[1:]):
lts.add_test_action(ld, test1_action)
ls = LaunchService(argv=argv)
ls.include_launch_description(ld)
return lts.run(ls)
return_code = lts.run(ls)
# (TODO ) This is a workaround to kill the gz server after the test
# We noticed that the gz server is not killed after the test
# and it is still running in the background. This affects
# the next test run. This is a temporary fix until we find
# a better way of killing the gz server after the test.
return return_code


if __name__ == '__main__':
Expand Down

0 comments on commit 66a8190

Please sign in to comment.