Skip to content

BUG: Fix failing ModelToLabelMapTest

When putting in a fix for using the passed in label value, the baseline file OAS10001.1.mha was removed as it didn't seem to be in use any more. A closer examination of the ctest output showed that that file was being picked up as the baseline image when the test was passing as of May 11/16: http://slicer.cdash.org/testDetails.php?test=7318110&build=825978 BaselineImageName OAS10001.1.mha

With the last change[1], the test is failing: http://slicer.cdash.org/testDetails.php?test=7329855&build=828864 BaselineImageName OAS10001.mha

Local testing shows that the test would pass if the file OAS10001.1.mha was reinstated, but to avoid confusion going forward as to how ctest globs the baseline image files, I decided to go with testing the CLI with the same input model (transformed to overlap the input image volume when both are loaded in Slicer) for both the 255 and 128 output label cases, and to generate a new output baseline image. I removed the untransformed model file and the now unused baseline image and, locally, ctest is comparing the outputs of both tests against teh correct baselines.

[1] https://github.com/Slicer/Slicer/commit/8707bb9ed2503f67ac0af29782c16db97adeab40

Reported-by: Andras Lasso lasso@queensu.ca

Issue #3233

Merge request reports