updated ament_cmake's on_test for Windows #24
Conversation
yield BuildAction(prefix + [MAKE_EXECUTABLE, 'test']) | ||
else: | ||
self.warn("Could not run test for ament_cmake package because it " | ||
"has no 'test' target") |
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.
run test
should be plural and I would suggest to quote the build type:
self.warn("Could not run tests for 'ament_cmake' package because it "
"has no 'test' target")
It could also following the new 100 chars wrapping rule instead of at 80 chars. (Same below)
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.
It's too long for 100 char without wrapping.
The |
Looks like the right behavior. |
Now the windows job (http://54.183.26.131:8080/view/ros2/job/ros2_batch_ci_windows/82/console) fails when trying to run the
|
That's the original error I believe, the Windows job is not setup to test this branch. I'll change the Windows job to use this branch. |
I've got a job running which is using this pr: http://54.183.26.131:8080/job/ros2_batch_ci_windows/83/console We'll have to see if that works. |
It now fails with:
I thought @tfoote solved that, did you make a pull request for that @tfoote? |
That was a connection timed out error (the pr version of the python 2.7 job passed), I retriggered the job. We could remove the Python2 check in general though. |
CI is passing now. |
I'm going to merge this because I tested it locally, it passes the travis CI, and I believe the remaining error on the Windows batch job is unrelated. |
updated ament_cmake's on_test for Windows
I changed the job back to not try to change branches. |
How do we want to address the pending comments? |
Sorry, I forgot those, I'll update those comments about the wording in a follow on commit. For the one about the |
I addressed the comments as well as I could in 24ddad5. |
Great, thanks. |
This pull request changes the
on_test
code for theament_cmake
build type so that it can run tests on Windows usingmsbuild
and theRUN_TESTS
VS project.Ready for review.
Fixes #23