Skip to content
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

[indigo] run_tests.py always reports failure? #703

Closed
garaemon opened this issue Dec 29, 2014 · 5 comments
Closed

[indigo] run_tests.py always reports failure? #703

garaemon opened this issue Dec 29, 2014 · 5 comments
Labels

Comments

@garaemon
Copy link

I'm in the middle of digging this problem...
According to run_test.py,
it expects ensure_junit_result_exist to return True.

However, in https://github.com/ros/catkin/blob/indigo-devel/python/catkin/test_results.py#L52, ensure_junit_result_exists does not return True.

From our testcase log:

... logging to /workspace/.ros/log/rostest-a9a70867430b-16376.log
[ROSUNIT] Outputting test results to /workspace/ros/ws_jsk_common/build/test_results/jsk_topic_tools/rostest-test_test_topic_buffer.xml
testhztest_chatter ... ok
testhztest_chatter_buffer ... ok
testhztest_chatter_update ... ok

[ROSTEST]-----------------------------------------------------------------------

[jsk_topic_tools.rosunit-hztest_chatter/test_hz][passed]
[jsk_topic_tools.rosunit-hztest_chatter_buffer/test_hz][passed]
[jsk_topic_tools.rosunit-hztest_chatter_update/test_hz][passed]

SUMMARY
�[32m * RESULT: SUCCESS�[0m
 * TESTS: 3
 * ERRORS: 0
 * FAILURES: 0

rostest log file is in /workspace/.ros/log/rostest-a9a70867430b-16376.log
-- run_tests.py: execute commands
  /opt/ros/indigo/share/rostest/cmake/../../../bin/rostest --pkgdir=/workspace/ros/ws_jsk_common/src/jsk_common/jsk_topic_tools --package=jsk_topic_tools --results-filename test_test_topic_buffer.xml /workspace/ros/ws_jsk_common/src/jsk_common/jsk_topic_tools/test/test_topic_buffer.test 
-- run_tests.py: verify result "/workspace/ros/ws_jsk_common/build/test_results/jsk_topic_tools/rostest-test_test_topic_buffer.xml"
<end of output>
Test time =  61.93 sec
----------------------------------------------------------
Test Failed.
"_ctest_jsk_topic_tools_rostest_test_test_topic_buffer.test" end time: Dec 29 05:35 UTC
"_ctest_jsk_topic_tools_rostest_test_test_topic_buffer.test" time elapsed: 00:01:01
----------------------------------------------------------

@garaemon
Copy link
Author

I think this line https://github.com/ros/catkin/blob/indigo-devel/python/catkin/test_results.py#L91 should be return True

@tfoote
Copy link
Member

tfoote commented Dec 29, 2014

That looks reasonable. Is there a simple test that can demonstrate this problem so we can add it as a regression test and verify this change fixes it?

@dirk-thomas
Copy link
Member

This affects CTest since only for those the --return-code option is passed. E.g. catkin_make test on catkin marks all tests as failing.

@dirk-thomas
Copy link
Member

Thank you for the report. This was a regression of 11217b3.

Since it hasn't been released yet it was only failing CTests when using catkin from source. Since the upcoming release 0.6.10 would have included this bug I just released 0.6.11.

@garaemon
Copy link
Author

thanks 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants