-
Notifications
You must be signed in to change notification settings - Fork 305
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
[Noetic] Rework and re-enable spawning and switching CLI tests #448
Comments
Dear @bmagyar, The test alone (all the other tests disables) works without python3 mistake. When cm_test AND cm_msgs_utils_rostest.test are enabled, my_controller3 is loaded before my_controller1 and then the resulting string is different from the expected output and makes the test failed. Should we enforce the fact that my_controller1 has to be loaded before my_controller3 ? If this is not the case, then we should test both output possibilities I guess. Wrt to new python3 do you suggest to use mock ? |
The second part is now called controller_manager_interface_test. This fixes part 2 of issue ros-controls#448
The second part is now called controller_manager_interface_test. This fixes part 2 of issue ros-controls#448
PR #462 provides a way of testing both output. |
…switching CLI tests (#462) * [tests] Split controller_manager_scripts.txt in two parts. The second part is now called controller_manager_interface_test. This fixes part 2 of issue #448 * [test] Modification of the validation test. When commenting the first test (cm_msg_utils_test.py) the output is correct, while uncommented an inversion of the output happens. As this test is a pure python with no interaction with the controller_manager, it is very likely a race condition due either to Python or to the operating system. As the output is not fundamentally wrong, and as the tests are heavily relying on timing and subprocesses which are making the reproducibility difficult, this PR accepts both solution: [my_controller1, my_controller3] order or [my_controller3, my_controller1] order
Thank you for this, I think we can live with the quality of that Python code. |
With the preparations for Noetic, the controller manager CLI tests became flaky.
These tests were not compatible with Python3 in the first place and a very rudimentary porting took place.
Please
Related PR where I disabled these tests:
#446
The text was updated successfully, but these errors were encountered: