Add missing inter-test dependency#788
Conversation
|
Seems like a reasonable to workaround to me. However, it would probably be better if the bag generation was done in each test if it doesn't already exist. For example, I imagine it makes it impossible to just run the test that was failing before (without first running the test that generates the bag). |
|
Indeed, with this change, if you |
|
Sure, I'm in favor of merging as-is. |
|
First try didn't work due to more-complex-than-expected target structure around the tests. f705e7f will hopefully do it, using the |
f705e7f to
be512aa
Compare
|
Cherry-picked to indigo-devel: 535f160 |
Add missing inter-test dependency
Fixes #787.
I'm not sure what caused this problem to suddenly pop up, but I would guess that it's a side effect of using a newer version of cmake/ctest that no longer runs tests in the order that they're declared in the CMakeLists.txt. In any case we never should have assumed that that was happening.
A more thorough cleanup step would be to restructure these three tests to not depend on each others' side effects in the file system. But adding the missing dependency in this manner will at least restore the previous behavior.