-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ROS2 python tests #663
Conversation
Signed-off-by: Mateusz Wasilewski <mateusz.wasilewski@robotec.ai>
Signed-off-by: Mateusz Wasilewski <mateusz.wasilewski@robotec.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on o3de cec608023e
Tests passed correctly after changing the default level name - my project did not have DefaultLevel
level.
diff --git a/Gems/ROS2/Code/PythonTests/tests/SmokeTests_EnterGameModeWorks.py b/Gems/ROS2/Code/PythonTests/tests/SmokeTests_EnterGameModeWorks.py
index e97d406b..7c5c728b 100644
--- a/Gems/ROS2/Code/PythonTests/tests/SmokeTests_EnterGameModeWorks.py
+++ b/Gems/ROS2/Code/PythonTests/tests/SmokeTests_EnterGameModeWorks.py
@@ -72,7 +72,7 @@ def SmokeTest_EnterGameModeWorks():
# - /tf
# - /tf_static
# - /clock
- helper.open_level(level="DefaultLevel", directory='')
+ helper.open_level(level="DemoLevel", directory='')
topics_before_game_mode = check_topics()
Gems/ROS2/Code/PythonTests/tests/SmokeTests_EnterGameModeWorks.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Mateusz Wasilewski <mateuszwasilewski12@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a minor nitpick.
helper.open_level(level="Warehouse", directory='') | ||
# Open the level called "DefaultLevel". | ||
# We use a DefaultLevel level for a smoke test. | ||
# ROS2 System Component should publish topics listed below regardless of level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: ROS2SystemComponent
if referring to the "ROS2" gem component, or ROS 2 system component
if referring to ROS 2 as a general behavior.
* Add pip requirements for ROS2 Gem * Change test level to DefaultLevel --------- Signed-off-by: Mateusz Wasilewski <mateusz.wasilewski@robotec.ai> Signed-off-by: Mateusz Wasilewski <mateuszwasilewski12@gmail.com> Co-authored-by: Jan Hanca <jan.hanca@robotec.ai>
* Add pip requirements for ROS2 Gem * Change test level to DefaultLevel --------- Signed-off-by: Mateusz Wasilewski <mateusz.wasilewski@robotec.ai> Signed-off-by: Mateusz Wasilewski <mateuszwasilewski12@gmail.com> Co-authored-by: Jan Hanca <jan.hanca@robotec.ai>
What does this PR do?
fixes #575
resolves #574
Adds pip dependencies (connected to ros2) to
o3de/python
if ros2 gem is enabled.How was this PR tested?
On non headless device run:
On o3de commit
5ae4e51252