-
Notifications
You must be signed in to change notification settings - Fork 278
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
run_tests writes to wrong workspace #719
Comments
I cannot find the code for |
That's because it's in the |
There is a related issue here, though I couldn't extract enough information to track down the actual issue: catkin/catkin_tools#137 We have another user of catkin which has identified a similar problem, so I think this is issue is real and is caused by a conceptual problem with the way we set the test variable. It has to do with the compatibility with the older rosbuild system. |
The problem is that the location is package specific but determined by a runtime setting defined through an environment hook. This is the case since rosmake used an environment variable which defines the location of the test results. One option to allow package specific folders for the test results would be to change the code to make the decision about the result location at configure time. This would definitely require break backward compatibility. Therefore I don't see a good path forward currently. |
what's confusing is that the rostest results and the gtest results are written in different locations and that |
The problem should be addressed with #728. Please give it a try and confirm that it works for your use case (please remove the build space to perform a clean build). |
I will close this ticker since the PR resolves the problem for me. |
While harmless in most cases, auto can delay evaluation of expressions in unexpected ways. So it is better to avoid auto for Eigen expressions. https://eigen.tuxfamily.org/dox/TopicPitfalls.html
I have a chain of workspaces: third, stable, exp, in this order, i.e. stable sources third and exp sources stable.
if I run
catkin_make run_tests
in the stable workspace, the xml result file is written toexp/build/test_results
instead ofstable/build/test_results
.note that in this examples there are 2 tests in the
velodyne_localizer
package:test_laser_map
which is a unit test added usingcatkin_add_gtest
. The result is written to the appropriate locationshort_loop_4-11-05-2014_12-01-05
which is a rostest added usingadd_rostest
. The results are written to the wrong locationThe text was updated successfully, but these errors were encountered: